Java hashtables/java in general?

Apr 1, 2012 at 7:22am
Please dont hate from the title haha.

I know this is a C++ forum, but I'm comfortable with this forum I thought I would ask here rather than creating a random account for a java/general prog lang forum.

I primarily work with C++ and never done Java - was just wondering if, when creating hash tables, can one only do it by including java.util or can it be done 'manually' so to speak? Additionally, are there any recommended tutorials for beginners in Java? I've heard that its easier to transition from C++ to Java but any recs for the tutorials would be much appreciated.

Thanks!

Edit: Oh my goodness no, this is not an april fools joke or anything. Talk about bad timing eh.
Last edited on Apr 1, 2012 at 7:26am
Apr 1, 2012 at 11:31am
You can write import java.util.Hashmap; //or * and use HashMap<Foo, Bar> myHashMap; or skip the import and use java.util.HashMap<Foo, Bar> myHashMap;. Was that what you meant by 'manual' ?
Apr 1, 2012 at 3:21pm
I'll assume by "manual" you mean write your own hashmap, if this is the case I am fairly sure you can, but why would you?
Last edited on Apr 1, 2012 at 3:21pm
Apr 2, 2012 at 5:04am
Yep, that's what I meant. Sorry for phrasing it so badly, but thanks for answering the question (to the both of you)! :)
Topic archived. No new replies allowed.