Question: 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

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 2?

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

thanks in advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!