Question: //-----------------------------------ArraysListEx1.java-----------------------------------> public class ArrayListEx1 { public static void main(String[] args) { } } Examine ArrayListEx1.java. Modify the program to implement: Create an ArrayList of Strings
![//-----------------------------------ArraysListEx1.java-----------------------------------> public class ArrayListEx1 { public static void main(String[] args) {](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3c812cf7d8_49866f3c81266419.jpg)

//-----------------------------------ArraysListEx1.java----------------------------------->
public class ArrayListEx1 {
public static void main(String[] args) { } }
Examine ArrayListEx1.java. Modify the program to implement: Create an ArrayList of Strings called students. Add four students to the ArrayList: Amy, Bob,Cindy and David -Print the elements in the ArrayList and display its size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
