Question: Create a class named Student that includes String data fields titled firstName and lastName, and an integer field titled studentID. Create a constructor that requires

Create a class named Student that includes String data fields titled firstName and lastName, and an integer field titled studentID. Create a constructor that requires two String parameters and one integer parameter to populate the firstName, lastName, and studentID fields. Create a LinkedList of 20 Student objects each having different first names, last names, and student IDs. Print your LinkedList, first in the order your items were placed onto the LinkedList and then in reverse order. Save your files as Student.java and ClassRoster.java. Compile and run the program until it works and the output looks nice, add the necessary documentation as described in Course Documents, and then attach your .java file(s) to this assignment. Do not attach the .class file(s), attach only your source code. This assignment is due the last day of the academic week.

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 Databases Questions!