Iterator it = set.iterator();
while (it.hasNext()) {
// Get the element
Object element = it.next();
}
Subscribe to:
Post Comments (Atom)
Sample Java Codes Copyright © 2008 Green Scrapbook Diary Designed by SimplyWP | Made free by Scrapbooking Software | Bloggerized by Ipiet Notez
1 comments:
Hi:
I am currently taking the JAVA passion course offered by Sun written by Sang Shin.
In reference to the code, I thought one has to downcast the object when retrieved? Please comment.
Post a Comment