Online Java Compiler By
JavaTpoint.com
import java.util.*; public class CollectionsEmptyListIteratorExample2 { public static void main(String[] args) { List
ls = new ArrayList
(); ls.add(1); ls.add(2); ListIterator
Itr = Collections.emptyListIterator(); System.out.println(Itr.next()); } }
Output