public class StringDemo {
public static void main(String[] args) {
String s="123,345,667";
String[] aarr= s.split(",");
for (int i = 0; i < aarr.length; i++) {
System.out.println(aarr[i]);
}
}
}
标签:String,int,aarr,System,667,字符串,public,切割
From: https://blog.51cto.com/u_15988249/6252752