This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.