- Create a student class. The student object should have studentid, studentname, subject and marks as properties. Also generate the getter and setter methods. Create 5 objects of this class and populate values into them.
a. Store the five objects into an array. Retrieve and print all details.
b. Store the five objects into an array list. Retrieve and print all details.
Retrieval and printing of data should be done both using normal iteration and by using enhanced for loop