for (Map.Entry<String, Double> pair : map.entrySet()) { // что эта строчка делает???? System.out.println(pair.getKey() + " " + pair.getValue()); }