How to find hashtable size in Java?

Hi,

What is the code for Hashtable in Java? How to find hashtable size in Java?

Give me the easy code.

Thanks

View Answers

September 12, 2014 at 4:38 AM

Hi,

You can use the size() method to find the number of elements in the Hashtable.

hashTableObject.size();

Please check the tutorial Simple Hash Table implementation in Java.

Thanks









Related Tutorials/Questions & Answers:
Advertisements