Dear all,
Got problems with HashMap.containsKey()..
Here is the key code:
if ( Word_Def.get("language"!=null )
{System.out.println(Word_Def.get("language");}
Word_Def is a HashMap stored the word and its definition. Word_Def has been created by reading a chopped file.
I want to look up a word in Word_Def by using containsKey() method, unluckly it doesn't work???!!!
Any body got same experience on it? Tell me why....
Very thanks for your help...!!!
jane
Got problems with HashMap.containsKey()..
Here is the key code:
if ( Word_Def.get("language"!=null )
{System.out.println(Word_Def.get("language");}
Word_Def is a HashMap stored the word and its definition. Word_Def has been created by reading a chopped file.
I want to look up a word in Word_Def by using containsKey() method, unluckly it doesn't work???!!!
Any body got same experience on it? Tell me why....
Very thanks for your help...!!!
jane