摘要: StringTokenizer st = new StringTokenizer("this is a test"); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); } String[] result = "this is a test".split("\\s"); for (int x=0; x<result.length; x++) System.out.println(result[x]); 阅读全文
posted @ 2012-01-14 14:30 greencolor 阅读(138) 评论(0) 推荐(0) 编辑