String str ="This is String {} split() by StringTokenizer, created by mkyong";
StringTokenizer st = new StringTokenizer(str,"\t\n,;{}[]().-<>&^%$@!-+/*~=");
我使用上面的代码进行标记。它工作正常,但不适用于空格
String str ="This is String {} split() by StringTokenizer, created by mkyong";
StringTokenizer st = new StringTokenizer(str,"\t\n,;{}[]().-<>&^%$@!-+/*~=");
我使用上面的代码进行标记。它工作正常,但不适用于空格