Question: 14. (16 pts) Complete the transfer method. Given an ArrayList of Integers, the method returns an array that contains all the numbers that were originally

14. (16 pts) Complete the transfer method. Given an ArrayList of Integers, the method returns an array that contains all the numbers that were originally at the even indices in the parameter; those numbers should be removed from the ArrayList. The order of the remaining integers should not change. For example: if the parameter is initially [7, 11, 5, 4, 8), then the method returns {7,5,8 } and the ArrayList is now (11,4]. The ArrayList will have at least one element. public static int [] transfer( ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
