Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Paaohjelma {
- public static void main(String[] args) {
- @SuppressWarnings("rawtypes")
- TreeMap treeMap = new TreeMap();
- treeMap.put("Kimmo","Koskenkorva");
- treeMap.put("Rauno","Varonen");
- treeMap.put("Allu","Suomalainen");
- Collection c = treeMap.values();
- Iterator itr = c.iterator();
- while(itr.hasNext())
- System.out.println(itr.next());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement