Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java sort a Map by keys

Map<String, Integer> unSortedMap = getUnSortedMapFromSource();
     
 
Map<String, Integer> sortedMap = new TreeMap<String, Integer>(unSortedMap);
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #java #sort #Map #keys
ADD COMMENT
Topic
Name
2+9 =