/* The program demonstrates passing array elements as arguments to a method * */ public class PassArray { public static void main(String[] args) { // Array initialization int[] num = {1, 2, 3, 4, 5, 6, 7, 8}; // Pass the array into the method showNum showNum(num); } // Prints out the array public static void showNum(int[] array) { for(int i=0; i