import java.lang.StackWalker.Option; public class array_1 { public static void main(String[] args) { /* * classroom 500 student so store the marks of foo student * so we have two Option * 1- make 500 variables * 2- make array of 500 size */ /* declaration and memory allocation int[] marks = new int[5]; System.out.println("the marks is "); marks[0] = 35; marks[1] = 45; marks[2] = 95; marks[3] = 26; marks[4] = 89; System.out.println(marks[4]);*/ int [] marks = {100, 123, 451, 451, 124}; System.out.println(marks[3]); } }