Question: 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 projectLab6. Declare a String array list called classList1 and do the followings:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!