Solved

single key multiple values class

Posted on 2001-07-27
5
3,354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

697 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