Given the following code snippet:
int[] arr = {1, 2, 3}; for (int i : arr) System.out.println(i);
I have the following questions:
Arrays.asList(arr).iterator();
Or write your own, implementing ListIterator interface..