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]); }
上一篇:layoutSubviews #pragma mark -


下一篇:出操队形(LIS)