use a StringTokenizer to break the string down into indiviual elements. In this case, I'm assuming you're looking through a sentence for certain words... the string is the entire sentence. A tokenized string creates an array out of the individual words of the string that is then searchable. [ MFS's advice column | Ask MFS A Question ]
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.