Question: Given (he following declaration and initialization int [] array I = {1, 3, 5, 7, 9, 11}: int[] array2= new int[6]: int[] array3 = new
Given (he following declaration and initialization int [] array I = {1, 3, 5, 7, 9, 11}: int[] array2= new int[6]: int[] array3 = new int[6]: a) write java code to copy the array 1 into arry2, so arry2 has separate copy of the array: b) write java code to have arry3 point to the same memory location as array 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
