FileDocCategorySizeDatePackage
HashDemoGeneric.javaAPI DocExample305Sun Jan 11 17:35:22 GMT 2004None

HashDemoGeneric

public class HashDemoGeneric extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		HashMap<Integer,String> map = new HashMap<Integer,String>();

		map.put(1, "Ian");
		map.put(42, "Scott");
		map.put(123, "Somebody else");

		String name = map.get(42);
		System.out.println(name);