class demo { public static void main(String[] args) { int[] arr={2,3,4,6}; for(int x=0;x<arr.length;x++) { System.out.println(arr[x]); } } }