How to get value of last HashMap key?
Map<Integer, Employee> map = new HashMap<Integer, Employee>();
map.put(1, "FIRST INSERTED");
map.put(2, "SECOND INSERTED");
map.put(3,"THIRD INSERTED");
What I want to do is take value of last key (3), increment it and add another row with next number (4).