Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

int array to integer arraylist

import java.util.*;
import java.util.stream.Collectors; 

// java 8+
List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());

// java 16+
List<Integer> list = Arrays.stream(nums).boxed().toList();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #int #array #integer #arraylist
ADD COMMENT
Topic
Name
9+1 =