+ 3

How can implement an Iterator in Java?

Java have a Collection interface that can be used to create lists, queues, and other data structures

3rd Apr 2017, 2:14 AM
⏩▶Clau◀âȘ
⏩▶Clau◀âȘ - avatar
1 Answer
+ 1
ArrayList <Type> list = new ArrayList <>(); // add things to list ListIterator<Type> iterator = list.listIterator (); while (list.hasNext ()) { System.out.println (list.next()); }
3rd Apr 2017, 2:22 AM
Edward