Hi i have a ArrayList of HashMap and i need the HashMap to be sorted by its key,Value.
ArrayList<HashMap> newList = new ArrayList();
loop start:
HashMap hashData = new HashMap();
hashData.put("name", "string-studentname");
hashData.put("mark", "int-studentmark");
newList.add(hashData);
loop end:
I need the newList to be sorted by the key-mark.
How do i get it?
nameandmarkMap, especiallyMap.computeIfAbsent