public class ArrayParameterExample { public int [] oneDimensional(int [] array1) { int i; int [] array2 = new int [array1.length]; for (i = 0; i < array2.length; i++) { array2[i] = array1[i] * 2; } return(array2); } public char [][] twoDimensional(char [][] array1) { char [][] array2 = new char [3][3]; return(array2); } }