Make a class TestArrayList with a main method:
import java.util.*;
public class TestArrayList
{public static void main (String [] args) {
ArrayList myList = new ArrayList(); myList.add("Z");myList.add(0, "A");System.out.println(myList); }}Chapter 11 Lab3• Change the program so that without changing the statements already in program, the contents of the array at the end are:B C A F D
System.out.println(myList); }
}
Chapter 11 Lab3
• Change the program so that without changing the statements already in program, the contents of the array at the end are:
B C A F D
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here