package cn.java.api;
/**
* 把一段逗号分割的字符串转换成一个数组
* @author <a href="mailto:809306794@qq.com">邱云</a>
* @version v1.0 2013-9-7
*/
public class Split {
public static void main(String args[]){
String str = "a,b,c,d,e";
String [] result = str.split(",");
for(int i = 0;i<result.length;i++){
System.out.print("result["+i+"]="+result[i]+" ");
}
}
}