摘要:
1 /* 2 * 需求:List集合存储字符串并遍历。 3 */ 4 public class ListDemo { 5 public static void main(String[] args) { 6 // 创建集合对象 7 List list = new ArrayList(); 8 9 // 创建字符串并添... 阅读全文
摘要:
Iterator iterator():迭代器,集合的专用遍历方式 阅读全文