Answers for "how to convert elements in string array to integer in java"

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 convert elements in string array to integer in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language