Question: Write a Java statement to create an ArrayList called list to hold 25 integers. What is the type of the ArrayList defined in question number
Write a Java statement to create an ArrayList called list to hold 25 integers.
What is the type of the ArrayList defined in question number 2?
Write a for loop to initialize the objects in the ArrayList created in question number 2 above to -1.
Write Java statements to add the integers 1001, 1100, and 1110 to the resulting ArrayList from question 4 above.
Write the Java statement to display the size of the resulting ArrayList from question 5 above.
thanks in advance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
