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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started