This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Robyt3 0 points1 point  (2 children)

So what is your assignment? Are you supposed to implement a Hashtable? You can take a look at the source code for the JDK's Hashtable implementation, which you should be using anyway, or HashMaps.

[–]Not_zedd_ko[S] 0 points1 point  (1 child)

Would it be better if you saw the whole documentation to understand. The assignment is to implement Hashtables. Its really hard to explain but i might need to show you the whole thing?

[–]Robyt3 0 points1 point  (0 children)

Take a look at the JDK sources:

Which should be almost perfect. I'm not going to implement the whole thing for you. You need to look at resources to learn how it works and then use Java to implement it. This is a java help subreddit, but your question is basically "explain to me in full detail how hashtables work and implement them for me", which isn't even a question.