File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Past Paper question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Past Paper question" Watch "Past Paper question" New topic

Past Paper question

Steven Gibbs

Joined: Apr 24, 2006
Posts: 29
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.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
If you take the Collections tutorial, such questions will be a piece of cake:

There is no emoticon for what I am feeling!
I agree. Here's the link:
subject: Past Paper question
It's not a secret anymore!