java method help ?

Write a method called splitArray that will accept a single 1-D integer array and return two arrays. The method should copy the elements from even-indexed array indices to one array and odd-valued array indices to the other array. Each array should be of the precise length of the number of elements it contains.

1 Answer

Still have questions? Get answers by asking now.