Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6. Create another Java class called LabQuestion6 within the same project Lab6. Declare a String array list called classList1 and do the followings: a. Add
6. Create another Java class called LabQuestion6 within the same project Lab6. Declare a String array list called classList1 and do the followings: a. Add the following students to the list. Ann, Lisa, Tom, Henry, Lisa b. Display names using the print statement. c. Display names in separate lines using a loop. d. Replace the name at index 3 to "Harry'. Display names in classList1using the print statement. e. Insert name "Cindy" between Ann and Lisa. Display names in classList1 using the print statement. f. Remove the name "Tom" from the list. Display names in classList1using the print statement
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started