class ArrayEx { public static void main(String[] args) { int[] nums = {10, 20, 30}; for (int n : nums) System.out.println(n); } }