简单例子:
//使用
StringTokenizer src = new StringTokenizer(s," ,");
//遍历
while(st.hasMoreElements()){
System.out.println("Token:" + src.nextToken());
}
//源码:默认
public StringTokenizer(String str) {
this(str, ” \t\n\r\f”, false);
}