void main() { int[] a = { 1, 2, 3 }; for (int i = 0; i <= a.length; i++) { System.out.println(a[i]); } }