Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help with written question, ty Question 5 (8 marks) A Student class has name (String type), student id (int or String type) and exam
need help with written question, ty
Question 5 (8 marks) A Student class has name (String type), student id (int or String type) and exam mark (int type). Design this class. When generating a report of all students, we would like every student's info are arranged in order, for example, Only the student id's are distinct. Students can have the same name or the same exam marks. The priority of the arrangement will be: Exam mark 1st;; followed by the name; and then the id. You can see in the above table, two Tan 1 have the same marks, the ID's are sorted in reversing order (no problem, if you wish the sort to be done in increasing order). In the main class consisting of the main method, demonstrates various lambda and stream capabilities using a Stream> to produce the above display. You can assume that you have the same student objects as above or randomly generated. Store the two classes in a Java program called YourName_Exam_5.java and upload this Java fileStep 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