使用split(",")方法 根据指定的字符进行拆分

 //根据逗号拆分
String hybrid = "1,2,3,4,5,6";
String[] splitHybrid = hybrid.split(",");
上一篇 下一篇