// For-All // Do something for every element public void forAll(int[] nums) { for (int i=0; i<nums.length; i++) { System.out.println( nums[i] ); } }