Write a Java statement to create an ArrayList called list to hold 25 integers.     ArrayList list = new ArrayList(25); Write a for loop to initialize the objects in the ArrayList created in question above to -1

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

Write a Java statement to create an ArrayList called list to hold 25 integers.

    ArrayList<Integer> list = new ArrayList<Integer>(25);

Write a for loop to initialize the objects in the ArrayList created in question above to -1

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT