Hi,
I wrote a code, below is a part of it(using NetBeans IDE 6.0)
.............
Hashtable<String, Integer> numbers= new Hashtable<String, Integer>();
numbers.put("one", 1);
numbers.put("two", 2);
numbers.put("three", 3);
............
Problem is the following:
-in tutorials i read put() method just puts the parameter in the table(we didnt have to write n=numbers.put("one", Integer(1)) ).
-when i wrote the above code, there was an error telling me that put() method returns an Integer.
Help me understand please.
Thanks.