Amindat Java Ass
Amindat Java Ass
Report
int[] myArray = new int[5];: Creates an array that can store 5 integers.
myArray[0] = 10; to myArray[4] = 50;: Adds values to each position (index) of the array.
Solution
Report
String name; etc.: These are variables to store student info.
displayInfo() is a method that prints out the information using those variables.
Student student1 = new Student();: Creates a new object of the Student class.