Answers for "array list to int array java"

6

integer arraylist to int array

//only works in java 8 or later
list.stream().mapToInt(i -> i).toArray();
Posted by: Guest on July-12-2020
1

list to int array in java 8

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

convert Integer arraylist to array java

Your_ArrayList_Name.stream().mapToInt(k->k).toArray();
Posted by: Guest on February-05-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language