Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #integer #array #string #array
ADD COMMENT
Topic
Name
1+7 =