print hashtable in java

Java
table.forEach( 
            (k, v) -> System.out.println("Key : " + k + ", Value : " + v)); 
Source

Also in Java: