Card 4 / 32: 12. TreeSet map = new TreeSet(); 13. map.add("one"); 14. map.add("two"); 15. map.add("three"); 16. map.add("four"); 17. map.add("one"); 18. Iterator it = map.iterator(); 19. while (it.hasNext() ) { 20. System.out.print( it.next() + " " ); 21. } What is the result?
A)
four one three two
B)
one two three four
C)
two four one three
D)
two three four one
E)
four three two one
Answer:
A) four one three two
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|