Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Need something like a "Hashtable<String[], Integer>" kind of data type @@

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need something like a "Hashtable<String[], Integer>" kind of data type @@

    ~
    Is there something like that? If there is I would be a happy camper :-)
    ~
    I have a String[] (String array (a Sequence of String more precisely since order matters)) which I need to hash for fastest access
    ~
    If the sequence of Strings is found in the hashmap all I need is the index
    ~
    How do you do something like that? Any suggestions?
    ~
    Thank you
    lbrtchx
    Last edited by Albretch Mueller; November 27th, 2010 at 10:22 PM. Reason: restating issues


  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need something like a "Hashtable<String[], Integer>" kind of data type @@

    ~
    Oops! There is indeed such a thing I had just mistyped the statement
    ~
    Thanks
    lbrtchx

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need something like a "Hashtable<String[], Integer>" kind of data type @@

    ~
    After thinking about these issues for a while I think I found some basic JVM inconsistencies. Try the demo code posted there
    ~
    java.util.Hashtable inconcistencies . . . Homo Symbolicus&#039;s Blog
    ~
    lbrtchx

Similar Threads

  1. Is there an integer-type variable bigger than "long"?
    By bardd in forum Java Theory & Questions
    Replies: 2
    Last Post: September 3rd, 2010, 02:43 PM
  2. Replies: 1
    Last Post: January 15th, 2010, 01:32 AM
  3. "java.lang.NoSuchMethodError: main" and "fatal exception occured."
    By joachim89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 10th, 2010, 08:35 AM
  4. Replies: 4
    Last Post: August 13th, 2009, 05:54 AM
  5. Replies: 4
    Last Post: June 18th, 2009, 09:23 AM

Tags for this Thread