I\'m learning and understanding Java now, and while practising with arrays I had a doubt. I wrote the following code as an example:
The arrays are not linked in any way. Like someone pointed out take a look at
SortedMap http://docs.oracle.com/javase/7/docs/api/java/util/SortedMap.html
SortedMap
TreeMap http://docs.oracle.com/javase/7/docs/api/java/util/TreeMap.html
TreeMap