问题:数组与字符串互相转换
解决方案:
数组==》字符串
public static void join() {
String[] solveIds = new String[10];
Arrays.fill(solveIds, "95");
System.out.println(org.apache.commons.lang.StringUtils.join(solveIds, ","));
}
字符串==》数组
public static String[] splitArr() {
String testStr = "1@2@3@4@5";
String[] solveIds = testStr.split("@");
return solveIds;
}