Question: In java: a- Write a method that takes an ArrayList a of characters and returns a new ArrayList that doubles the elements of a. For
In java:
a- Write a method that takes an ArrayList a of characters and returns a new ArrayList that doubles the elements of a.
For example, if a = {'s', t', 'a', 'j'} then the result is {'s', 's', 't', 't', 'a', 'a', j', j'}.
b- write the main() method to test the method from part a.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
