单选题 阅读下面的代码:
Public class Example{
Public static void main(String[] args) { String[] strs = { "Tom", "Jerry", "Donald" };
// foreach 循环遍历数组 for (String str : strs) { str = "Tuffy";
}
System.out.println(strs[0]+ "," + strs[1] + "," + strs[2]);
}
}
程序的运行结果是( )
相关试题
单选题 关于下列 List 接口的方法,不是从 Collection 接口中继承而来的是()
单选题 Java 语言中,集合类都位于哪个包中( )
单选题 下列数据结构中,哪一个是 ArrayList 类的底层实现( )
单选题 下列方法中,不能用于删除 Collection 集合中元素的是( )
单选题 下列关于集合的描述中,哪一个是错误的( )
单选题 下面关于 List 集合的描述中,哪一个是错误的( )
单选题 下列集合中,不属于 Collection 接口的子类的是()
单选题 下列关于 List 接口的描述中,错误的是()