标签:数组 表达式 style split tin i++ next 表达 family
1 用正则表达式,代码大概为: String [] result = orgStr.split(“,”);
2 用 StingTokenizer ,代码为: StringTokenizer tokener =
StringTokenizer(orgStr,”,”);
String [] result =new String[tokener .countTokens()];
Int i=0;
while(tokener.hasNext(){result[i++]=toker.nextToken();}
标签:数组 表达式 style split tin i++ next 表达 family
原文地址:http://www.cnblogs.com/fifiyong/p/6413369.html