Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what is the problem with this code

807603Oct 20 2007 — edited Oct 20 2007
hi
the method getSynonyms1 returns the list of synonyms for a word of given part of speech.Iam trying to pick one word from the list. check out the code
List synnyms=word.getSynonyms1(POS.NOUN,"keyWord");
String keyWord=synnyms.getItem[index];

Iam getting an error in the second line as 'cannot find symbol variable getItem'..eventhough i imported the package
import java.util.List;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2007
Added on Oct 20 2007
7 comments
122 views