/**
* Hash Map
*
* @author Migel Aulia Mandiri Putra
* @version 24 Oktober 2020
*/
import java.util.*;
class HashMapContoh{
public static void main(String args[])
{
HashMap <Integer,String> hm=new HashMap <Integer,String>();
hm.put(100,"Kano");
hm.put(101,"Laila");
hm.put(102,"Badu");
hm.put(null, "Johan");
for(Map.Entry m:hm.entrySet())
{
System.out.println(m.getKey()+" "+m.getValue());
}
}
}