Question: Write a program that prints out the list after the following methods are called: Method removeElementsAtEvenPositions (): takes an ArrayList of strings as a parameter

Write a program that prints out the list after the following methods are called: Method removeElementsAtEvenPositions (): takes an ArrayList of strings as a parameter and removes all elements, that have an even index (elements from ArrayList can be removed using ArrayList. remove (int index) method). Method reverse ) that reverses the order of elements in the list Create two arbitrary lists in your main method and test the implemented functions. Print the lists that are returned by the methods. Please note that you can use Java library method collection.sort ) for the second method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
