Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help me in this ArrayList questions thank you :) 1. write a java statemen

ID: 3549553 • Letter: P

Question

please help me in this ArrayList questions  thank you :)


1. write a java statement to create an ArrayList called list to hold 25 integers.

2. what is the type of the ArrayList defined in question number 1.

3. write a for loop to initialize the objects in the ArrayList created in question number 1  above to -1

4 write java statements to add the integers 1001, 1100, and 1110 to the resulting ArrayList from question number 3 above

5 write the java statement to display the size of the resulting ArrayList from question number 4 above.

Explanation / Answer

1. List<Integer> list = new ArrayList<>(25);

2. List

3.for(int i=0; i<list.length();i++){

}

4.list.add(1001);