Results 1 to 5 of 5
  1. #1
    venu2807 is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Exclamation usage of Hashtable

    Hi

    Can some one please send the code for how to populate the data into hash table and retrieve data from hash tables

    Thanks
    Venu

  2. #2
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default Nope...

    No we cannot... this is not a send-a-code service... but what we can do is help you understand hashtables. Here ya go:
    Hashtable (Java 2 Platform SE v1.4.2)
    It has the methods that can be used with hashtables and has some simple examples.
    Need more? Google is your friend ...

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Ouch!

    myHashtable.put(key, value);
    myHashtable.get(key);

    As CJSLMAN said, look at the API. But version 1.6 is current ;-)

  4. #4
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default

    Was I too rude? It wasn't my intention... just sending a message.
    Oh, yeah... I mistakenly posted the JDK 1.4 javadoc... here's the 1.6 version:

    Hashtable (Java Platform SE 6)

    CJSL
    Last edited by CJSLMAN; 01-26-2009 at 06:33 PM.
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  5. #5
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Actually, new code should not use Hashtable, HashMap and HashSet are preferred.

Similar Threads

  1. Usage of HTTPS
    By Sayed in forum Advanced Java
    Replies: 8
    Last Post: 12-06-2008, 11:02 AM
  2. Need help with AST usage on Eclipse! Thanks!
    By j_aquino314 in forum Eclipse
    Replies: 0
    Last Post: 10-08-2008, 08:15 PM
  3. JVM memory usage
    By lardum in forum New To Java
    Replies: 7
    Last Post: 06-26-2008, 04:30 AM
  4. Integer Usage
    By bluegreen7hi in forum New To Java
    Replies: 11
    Last Post: 01-24-2008, 09:54 AM
  5. Comm API Usage
    By hobbyist in forum New To Java
    Replies: 0
    Last Post: 11-16-2007, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •