change print for Map in java code example
Example 1: print only values in map
System.out.println(Arrays.toString(map.entrySet().toArray()));
Example 2: print only values in map
map.forEach((key, value) -> System.out.println(key + " " + value));
System.out.println(Arrays.toString(map.entrySet().toArray()));
map.forEach((key, value) -> System.out.println(key + " " + value));