📌  相关文章
📜  将整数数组转换为字符串数组 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:28.510000             🧑  作者: 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));