So I want to make a for loop for a tree map to get the highest number right now I have:
Code :public void findRichestInList() { bank = new TreeMap<String, Integer>(); bank.put("Dave",139); bank.put("Mary",99); for(....... }
I am not sure how to write the loop to check each record.
How would I do this?
Also would it be easier to use a hashMap instead of a treemap?
