-
StringTokenizer
Line of code:StringTokenizer stk = new StringTokenizer(str," \\t ‘@#$%^&*/,'|'}{—\n 1234567890-=\"“”():,'][-;");
The line of code above does not take a tab as a delimiter, but I do not know how to represent a tab as a delimiter. Anyone in the house that can help me with this?
-
Re: StringTokenizer
Does the newline character work?
-
Re: StringTokenizer
That is an insane tokenizer....is that supposed to be the delimiter, or do you wish to tokenize on any of those characters within? If the latter, use String.split and the appropriate regular expression