Question: Need help with Java program, please do NOT ask for user input, I just need it to display the list exactly how it is shown
Need help with Java program, please do NOT ask for user input, I just need it to display the list exactly how it is shown in there once the java file is ran, the values should be already predefined.
Java review You may use an IDE or a text editor, but I will test this by compiling and running from the command line so be sure to test it that way. (No packages allowed) Save this for a future assignment. Here are the steps (1) Create a Student class containing an ID, a last name, and a list of course names such as COP2210" or "COP2250 (2) Create a class named StudentTest that contains a List of students. Do not use the list provided here. In the class constructor, create 10 students and add them to the list. Each student's ID must be different. Each student you add to the list must contain at least 3 different course names. Make sure the students do not all have the same courses, although there should be some overlap (see the sample below). The student names must be inserted into the list in random order (not sorted) (3) Sort the list in ascending order by student last name and display the list. For each student, display the ID, last name, and list of courses on a single line. Here is sample output. Note how the tab character is inserted after the name to line up the next column containing courses. Be sure there is no trailing comma at the end of the list of courses 0008, Alvarez COP225e, COP3250, COP425e 0002, Chong 0026, Fujioka COP225e, COP325e, COP4250 0032, Johnson COP121e, COP3337, COP353e 0e1e, Kim 0027, o 'Malley COP2250, COP325e, COP425e 0044, Pierrot ENC1105, ENC325e, REL2210 0013, Ramirez ENC1105, ENC325e, REL221e 0001, Smith 0011, Wong COP1210, COP3337, COP353e COP1210, COP3337, COP353e COP2250, COP3250, COP425e ENC1105, ENC3250, REL2216
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
