You have just initialized the Hashtable with initial capacity and loadfactor. There is no key and value in the table, you have to use put method to actually get some size. m.put(new Test17(), "Hello"); System.out.println(m.size());
Modify your code as above and see the output. Hope this helps you.
Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.
Joined: Jan 06, 2005
Thanks Jay .
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com