How to get TreeSet from TreeMap?

How to get TreeSet from TreeMap?


TreeMap tree = new TreeMap();
tree.put("One", "ABC");
tree.put("TWO", "DEF");

TreeSet treeSet = new TreeSet(tree.keySet());


No comments:

Post a Comment