Answers for "int array to integer array java"

0

int

int[] primitiveArray = { 1, 2, 3, 4, 5 };
 
Integer[] boxedArray = Arrays.stream(primitiveArray) // IntStream
  .boxed()                // Stream<Integer>
  .toArray(Integer[]::new);

System.out.println(Arrays.toString(boxedArray));
Posted by: Guest on January-01-1970

Code answers related to "int array to integer array java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language