Boxing Generic Example : Generic Parameter « Generics « Java
- Java
- Generics
- Generic Parameter
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);
}
}
Related examples in the same category