📜  转换器 int 数组 para string java 代码示例

📅  最后修改于: 2022-03-11 14:52:03.084000             🧑  作者: Mango

代码示例2
int[] nums = {5,1,2,11,3}; //List or Vector
Arrays.sort(nums); //Collections.sort() for List,Vector
String a=Arrays.toString(nums); //toString the List or Vector
String ar[]=a.substring(1,a.length()-1).split(", ");
System.out.println(Arrays.toString(ar));