package learnExample;
import java.util.Hashtable;
public class Learn {
public static void main(String args[])
{
Hashtable<String,Integer> Learn = new Hashtable<String, Integer>(); //String为key,int为value
Learn.put("one", 1);
Learn.put("two", 2);
Learn.put("three",3);
Integer n = Learn.get("two");
if(n!=null)
System.out.println("two="+n);
}
}