Solved

single key multiple values class

Posted on 2001-07-27
5
3,350 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
ID: 6326763
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
ID: 6326793
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
ID: 6326944
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
ID: 6327030
to diakov:
         i didnt know that there was a similar comment already.

Regards
Yaser Ansari
0
 
LVL 8

Expert Comment

by:diakov
ID: 6333384
Sory, I appologize. I should have looked at the posting time.

Cheers,
  Nik
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

895 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

18 Experts available now in Live!

Get 1:1 Help Now