Home arrow static arrow Java Programming [Archive] - Getting the value from a hashtable
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Getting the value from a hashtable
This topic has 1 reply on 1 page.

Posts:3
Registered: 7/6/04
Getting the value from a hashtable  
Jul 11, 2004 1:56 AM



 
Hi all,
Can I get the value from a Hashtable by passing vector.toString() , in the get method?

I am storing the key value pair using the key as vector.toString() as the key and a string value. When i am using the get method by passing vector.toString() I am getting an exception

found : Object
required : String.

Thanks and regards
Tanmoy
 

Posts:11,200
Registered: 7/22/99
Re: Getting the value from a hashtable  
Jul 11, 2004 2:59 AM (reply 1 of 1)



 
Exception? "found: X required: Y" sounds more like a compiler error to me.

You need to post the lines of code that cause the error so we can see what's going on.
 
This topic has 1 reply on 1 page.