publicstaticvoidmain(String args[]){// Create a hash mapTreeMap tm =newTreeMap();// Put elements to the map
tm.put("Zara",newDouble(3434.34));
tm.put("Mahnaz",newDouble(123.22));
tm.put("Ayan",newDouble(1378.00));
tm.put("Daisy",newDouble(99.22));
tm.put("Qadir",newDouble(-19.08));// Get a set of the entriesSet set = tm.entrySet();// Get an iteratorIterator i = set.iterator();// Display elementswhile(i.hasNext()){Map.Entry me =(Map.Entry)i.next();System.out.print(me.getKey()+": ");System.out.println(me.getValue());}System.out.println();// Deposit 1000 into Zara's accountdouble balance =((Double)tm.get("Zara")).doubleValue();
tm.put("Zara",newDouble(balance +1000));System.out.println("Zara's new balance: "+ tm.get("Zara"));}