Collections and Generics
© examsiri.com
Question : 53 of 53
Marks:
+1,
-0
Given:
What is the result?
1. TreeSet map = new TreeSet();
2. map.add("one");
3. map.add("two");
4. map.add("three");
5. map.add("four");
6. map.add("one");
7. Iterator it = map.iterator();
8. while (it.hasNext() ) {
9.   System.out.print( it.next() + " " );
10. }What is the result?
Go to Question: