Answers for "how to turn an array of integers into an array of strings"

0

convert integer array to string array

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));
Posted by: Guest on June-29-2020

Code answers related to "how to turn an array of integers into an array of strings"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language