wood burning stoves 2.0*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Past Paper question" Watch "Past Paper question" New topic
Author

Past Paper question

Steven Gibbs
Greenhorn

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: http://java.sun.com/docs/books/tutorial/collections/index.html


There is no emoticon for what I am feeling!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Past Paper question