convert int to string array in java code example
Example 1: converter int array para string java
int[] array = { 1, 2, 3, 4, 5 };
String s = String.join("", IntStream.of(array).mapToObj(String::valueOf).toArray(String[]::new));
System.out.println(s);
Example 2: convert integer array to string array
int[] nums = {5,1,2,11,3};
Arrays.sort(nums);
String a=Arrays.toString(nums);
String ar[]=a.substring(1,a.length()-1).split(", ");
System.out.println(Arrays.toString(ar));
Example 3: array to string java
char[] charArray = new char[] {'b','u','z','z'};
String answer = new String(charArray);