标签:bool element color ring https rem ddl dal str
本想找队列Queue,发现那是一个接口,LinkedList实现了Queue接口,可以当作队列来用。
for (int size = linkedList.size(), i = 0; i < size; i++) { System.out.println(linkedList.get(i)); }
for (String str: linkedList) { System.out.println(str); }
Iterator iter = linkedList.iterator(); while (iter.hasNext()) { System.out.println(iter.next()); }
标签:bool element color ring https rem ddl dal str
原文地址:https://www.cnblogs.com/shoulinniao/p/11965323.html