Question: Using Java 1 . Design class Student. Student has a student ID , name, and major ( all strings ) . Add necessary constructor /

Using Java
1. Design class Student. Student has a student ID, name, and major (all strings). Add necessary constructor/constructors and methods.
2. Create a new class. Call it StudentDemo.
3. Add the main method to this class.
4. In the main method create three Student objects.
5. Create an ArrayList of Student objects.
6. Add your Student objects to the ArrayList.
7. Using a for loop display each student's ID, name and major.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!