Question: Write a method called mirror that accepts an ArrayList of strings as a parameter and produces a mirrored copy of the list as output, with
Write a method called mirror that accepts an ArrayList of strings as a parameter and produces a mirrored copy of the list as output, with the original values followed by those same values in the opposite order. For example, if an ArrayList variable called list contains the values ["a", "b", "c"], after a call of mirror(list) ; it should contain ["a", "b", "c", "c", "b", "a"].
Step by Step Solution
3.40 Rating (172 Votes )
There are 3 Steps involved in it
public static voi... View full answer
Get step-by-step solutions from verified subject matter experts
