Mega Code Archive

 
Categories / Java / Generics
 

Boxing Generic Example

import java.util.*; public class BoxingGenericsExample {     public static void main(String args[])     {         HashMap<String,Integer> hm = new HashMap<String,Integer>();         hm.put("speed", 20);     } }