<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.util.HashMap;

//old
class Hash1 {
   
   static HashMap h = new HashMap();
   
   public static void main(String[] args) {      
      h.put("one",new Integer(1));
      Integer s = (Integer)h.get("one");
      System.out.println(s);
   }
}


// new
class Hash2 {
   
   static HashMap&lt;String,Integer&gt; h = new HashMap&lt;String,Integer&gt;();
   
   public static void main(String[] args) {      
      h.put("two",new Integer(2));
      Integer s = h.get("two");
      System.out.println(s);
   }
}
</pre></body></html>