Question: Create an ArrayList. Add 1 0 elements to the array list. Add your first and last name to the array list and do the same

Create an ArrayList.
Add 10 elements to the array list.
Add your first and last name to the array list and do the same for your 3 best friends.
Add the name of six streets that you know.
Add the name of your favorite vehicle.
Display your current array list.
Sort the array list in reverse order and display the result.
Remove the #10 item on your list.
Insert an item with your favorite word In the 3rd position on the list.
Write a foreach loop to find the location of your name in the list.
Remove items 5,6,7 from the list.
Write a loop to calculate how many items are currently on the list.
Sort the list in ascending order and display your final list.
Convert the list to an array

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 Programming Questions!