Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hash table help urgent please

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
Dear Fellow citizens
Please help me with the below mentioned scenario

I have a class A,Class B.

In class B.I have a hash table code

Hashtable birthdays = new Hashtable ();
birthdays.put ("Dylan", "June 25");
birthdays.put ("Liam", "February 28");
birthdays.put ("Angie", "February 10");



i need to call the result of hash code of class B in to Class A.

Could you let me know how to call the results of Hash code in class B in to Class A

Thanx in advance
aby
 
When you say "Hash code" do you mean the method Object.hashCode() ? If not, can you explain a bit more ...

BTW, typing "help urgent please" will not make anyone answer you quicker. In the posting guidelines it does point out that you should not post with subjects of "help" or "URGENT !". We all know you need help, thats why you're here, and your problem is urgent to you, but not to us !



--------------------------------------------------
Free Database Connection Pooling Software
 
greetings sedj

it was an urgency hence requested the fellow members.I have not created any offence or barbarism.Anywaz thanx for bringing to my notice will not mention the words again.

the scene is at run time value would be either Dylan, liam or Angie based on that the result has to returned to Class A .Consider the Hash Table in Class B.

You can omit HASHCODE CONCEPT.

Thanx in advance for helping it out
Aby
 
Sorry aby, I still don't quite understand what it is you wish to do. Do you want to return the whole HashTable, or one of the entries ? What criteria do you have for selecting a particular entry from the HashTable ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top