I get an error that "cannot find symbol - method put". When I look at other Hashtable programs it is written similar as my code and put method is not declared. I am new to Java so any help would be greatly appreciated. Here is the snippet of code I am having problems with:
Hashtable hTable=new Hashtable();
hTable.put(new Integer(10), "Ten");
hTable.put(new Integer(5), "Five");
hTable.put(new Integer(25), "Twenty-five");
hTable.put(new Integer(15), "Fifteen");
hTable.put(new Integer(20), "Twenty");

New Topic/Question
Reply


MultiQuote




|