for(Map.Entry<String, String> entry: map1.entrySet()){
System.out.println("Key: "+ entry.getKey()+ " Value: "+entry.getValue());
}