Yeah, the SortedMap class is just an interface. You will need to pick an implementation class such as TreeMap. TreeMap is a red-black tree implementation that is good for sorting objects that will later need to be displayed in order. If they don't need to be displayed in order consider using a HashMap.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.