Question: Write a method called doubleList that takes an ArrayList of strings as a parameter and replaces every string with two of that same string. For
Write a method called doubleList that takes an ArrayList of strings as a parameter and replaces every string with two of that same string. For example, if the list stores the values ["how", "are", "you?"] before the method is called, it should store the values ["how", "how", "are", "are", "you?", "you?"] after the method finishes executing.
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
public void doubl... View full answer
Get step-by-step solutions from verified subject matter experts
