Solved

single key multiple values class

Posted on 2001-07-27
5
3,348 Views
Last Modified: 2012-05-04
I would like to get hold of a class which supports single key and multiple values somewhat similar to key-value pairs in hashtable, dictionary. The key-value pair properties must be configurable. If existing java classes are not supporting, tell me the process as to how i can continue my work.
0
Comment
Question by:k_murli_krishna
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
diakov earned 50 total points
Comment Utility
Put collections in a Hashtable. This way you have many values associated to a key. Or do you mean something else?

Cheers,
  Nik
0
 
LVL 1

Expert Comment

by:yaseransari
Comment Utility
Hello
     Hashtable would do. Just put a vector of values against the key . Then pick up the required value from the
vector.
simple


Regards
Yaser Ansari
0
 
LVL 8

Expert Comment

by:diakov
Comment Utility
to yaseransari :

how does your comment differ from mine? try to bring something new to the discussion.

Cheers,
  Nik
0
 
LVL 1

Expert Comment

by:yaseransari
Comment Utility
to diakov:
         i didnt know that there was a similar comment already.

Regards
Yaser Ansari
0
 
LVL 8

Expert Comment

by:diakov
Comment Utility
Sory, I appologize. I should have looked at the posting time.

Cheers,
  Nik
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now