Question: Write a method called doubleList that takes an ArrayList of * strings as a parameter and replaces every string with two of * that same
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
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
