摘要:
1.StringTokenizer,例子如下:class StringToken{ static String str = "1:java;"+"2:perl;"+"3:C/C++;"+"4:shell;"; public static void main(String [] args) { StringTokenizer ST = new StringTokenizer(str,":;");//以:;为分隔符 while(ST.hasMoreTokens()){ String key = ST 阅读全文