i has been try to use stringTokenizer class for parsing a file and identifying
certain details
eg String s= " please i want help"
if to use StringTokenizer on this string by default it is supposed to break
the string usin whites spaces that is to
please
i
want
help
i am getting this expected output but if i want to check if something is
in the token stream eg
if(s.nextToken()=="please")
{
// do something
}
i get unexpected result ,ie on no occassion is this condition satisfied
and executed but i know please should be in the token stream i am even printing
the token stream and seeing it

please help what could be the problem