Java 字符串拆分(拆分字符串)

String sourceStr = "1,2,3,4,5";
String[] sourceStrArray = sourceStr.split(",");
for (int i = 0; i < sourceStrArray.length; i++) {
    System.out.println(sourceStrArray[i]);

}
原文地址:https://www.cnblogs.com/emanlee/p/7050642.html