import java.util.Scanner; class Arrays { // method to print the array static void printArray(int [] arr) { // here value is the same as arr[i] /* this is the same as for(int i=0; i< arr.length;i++) System.out.println(arr[i] + "\t"); */ for(int value : arr) System.out.print(value + "\t"); } //method to add the corresponding elements of two arrays, store the result in a //third array and return it. // We use the arary declaration syntax as the return type to return an array static int [] addArray(int [] a, int [] b) { int [] c = new int [a.length]; for(int i=0; i