Sory List by Comparator
-
return o1.compareToIgnoreCase(o2);
-
}
-
});
Sort a Map
Just get a list from the values of the map and sort that as above
-
List<String> excludedPrefixes = new ArrayList<String>(excludedPrefixesMap.values());
Google Juice
Hash HashMap List ArrayList
RJM Article Type
Quick Reference