Hi friends,
Why does the following code prints "how are you, "why are you" and "im fine". Should it print "how are you# why are you" and then "im fine". Can't strintokenixer tokenize with two characters.
How can i achive this.
String test = "how are you# why are you## im fine";
StringTokenizer str = new StringTokenizer(test, "##");
while(str.hasMoreElements())
{
System.out.println("The string is:" + str.nextToken());
}
Thanks a lot in advance.
cheers
rajat