Question: 1. Create an empty integer list 2. Add 1, 3, 5, 7, 9 to the end of the list in sequence 3. Add 2, 4,

1. Create an empty integer list 2. Add 1, 3, 5, 7, 9 to the end of the list in sequence 3. Add 2, 4, 6, 8, 10 to the beginning of the list in sequence; at the end of this step, you should have the following elements in the list in sequence: 10, 8, 6, 4, 2, 1, 3,5,7,9 4. Print out the first and last element in the list 5. Remove element"3" from the list 6.Sort the list using the sorting method in List Class, but not the one in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
