Hi there. I am currently studying for an exam for a module I do at uni called Algorithms and Data Structures. I am looking at a past paper and I'm stuck on a question and wondered if anyone could help? The question is below:
The following java code fragment illustrates the use of an iterator object to traverse the members of a set of strings:
Explain how this code works by describing each of the operations used. Explain why the typecast is needed in line 3 of this code fragment.