Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention. Check out this how-to article for more information.
and then I add some values:
SortedMap <String, String> map = new TreeMap<String, String>();
It seems that by default, it puts them in alphabetical order.
map.put("Mary", "Orange"); map.put("Bob", "Banana"); map.put("Jack", "Apple");
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.