Question: Write a program that creates an ArrayList named contacts that contains Allison, Dillon, and Coleen. Write a display method that displays the ArrayList on a
Write a program that creates an ArrayList named contacts that contains
"Allison", "Dillon", and "Coleen". Write a display method that displays the
ArrayList on a single line separated by commas as shown below note there are
no commas at the ends of the lines Then complete the steps below.
a call the method to display the initial ArrayList
b add "Olivia" to the list and call the display method
c replace "Colleen" with "Reece", and call the display method
d remove "Dillon" and call the display method
Allison, Dillon, Colleen
Allison, Dillon, Colleen, Olivia
Allison, Dillon, Reece, Olivia
Allison, Reece, Olivia
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
