Java 数组转字符
public static String toString(int[] arr){
String temp = "";
for(int i = 0;i<arr.length;i++){
temp = temp + arr[i];
if (i != arr.length-1) {
temp = temp +",";
}
}
return temp;
}
public static String toString(int[] arr){
String temp = "";
for(int i = 0;i<arr.length;i++){
temp = temp + arr[i];
if (i != arr.length-1) {
temp = temp +",";
}
}
return temp;
}