public class StringToKenizer {
public static void main(String[] args) {
String strin = "Hello Java World!!的";
System.out.println("原字符串:" + strin + " ");
System.out.println("演示StringToKenizer获取字符串中的单词:");
StringTokenizer oo = new StringTokenizer(strin);
while (oo.hasMoreTokens()){
System.out.println(oo.nextToken());
}
}
}