Answers for "araryslist size define"

2

how to make arraylist of fixed size

List<Integer> arr = Arrays.asList(new Integer[10]);
Posted by: Guest on April-20-2021
0

java create arraylist with size

ArrayList<Integer> arr=new ArrayList<Integer>(10);
Posted by: Guest on March-23-2021

Browse Popular Code Answers by Language