在API里有没有封装的功能可以代替这个代码:
int[] int ={-12, 27, 34, 56, 93};
String string = Arrays.toString(arr);
String string1 = string.replace("[", "\"");
String string2 = string1.replace("]", "\"");
String string3 = string2.replace(",", " ");
System.out.println(string3);
想打印的结果是 "-12 27 34 56 93" |
|