<<< How to create a reference to an array | Index | Copy an array with Arrays.copyOf, JDK 1.6+ >>> |
public static void arraysAsFormalParameter( int[] arr_first, double[] arr_second, int num ) { //... } public static void demo() { int[] intList = new int[10]; double[] doubleNumList = new double[15]; int number; // make a call: arraysAsFormalParameter(intList, doubleNumList, number); }
<<< How to create a reference to an array | Index | Copy an array with Arrays.copyOf, JDK 1.6+ >>> |