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 elements to the array list.
Add your first and last name to the array list and do the same for your 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 # item on your list.
Insert an item with your favorite word In the rd position on the list.
Write a foreach loop to find the location of your name in the list.
Remove items 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
