|
question on string tokenizer
when i split a string into tokens and comparing with another string its giving me false can any body help me out
String str="hello this is pardhu:at hyderabad;";
if i split it and compars as
StringTokenizer st=new StringTokenizer(str,":;");
while(st.hasMoreTokens())
{
if(st.hasMoreTokens.equalsIgnoreCase("hellothis is pardhu"))
{
......
......
}
}
it is returining false can some body help me out
|