Repeat Exercise, but instead use the following statements:
IteratornameIterator = nameList.getIterator();nameIterator.next();nameIterator.remove();nameIterator.next();nameIterator.next();nameIterator.remove();System.out.println(nameIterator.next());displayList(nameList);System.out.println(nameIterator.next());System.out.println(nameIterator.next());
Suppose that nameList is a list that contains the following strings: Kyle, Cathy, Sam, Austin, Sara. What output is produced by the following sequence of statements?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.