document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * @author Muhammad Bagus Istighfar
  3.  * @version 28-10-20
  4.  */
  5. import java.util.*;
  6. public class Hashmap
  7. {
  8.     public static void main(String args[])
  9.     {
  10.     HashMap<Integer,String> hm=new HashMap<Integer,String>();
  11.         hm.put(100,"Bagus");
  12.         hm.put(101,"Ibram");
  13.         hm.put(102,"Eka");
  14.         hm.put(null, "Nova");
  15.        
  16.     for(Map.Entry m:hm.entrySet())
  17.     {
  18.         System.out.println(m.getKey()+" "+m.getValue());
  19.         }
  20.     }
  21. }
');