Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 22nd International Conference Dexa 2011 Toulouse France August/September 2011 Proceedings Part 1 Lncs 6860

Authors: Abdelkader Hameurlain ,Stephen W. Liddle ,Klaus-Dieter Schewe ,Xiaofang Zhou

2011th Edition

3642230873, 978-3642230875

More Books

Students also viewed these Databases questions

Question

1. Divide the class into groups of three to five students.

Answered: 1 week ago

Question

what is a peer Group? Importance?

Answered: 1 week ago