Answers for "convert list<int> to int array"

1

list to int array in java 8

int[] array = list.stream().mapToInt(i->i).toArray();
Posted by: Guest on July-30-2020
0

List of Integer to int array

int [] ints = list.stream().mapToInt(Integer::intValue).toArray();
Posted by: Guest on July-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language