+ 2

How do I come about the sorting code..

Task 11: Write a Java program (in an object-oriented way) that accepts details of any number of students. For each student, the program should prompt for a student number, student last name, first name and a grade that they scored in a test. Thereafter, the program should print a list of students with their details sorted by their student number in ascending order(low - high) (e. g 29055342 , 29566765 ).. please help me out https://code.sololearn.com/c5iE29qcGPEc/?ref=app

19th Mar 2018, 11:55 AM
Mompati Keetile
Mompati Keetile - avatar
3 Respostas
+ 10
make use of array , Arrays.sort(arrayName); //U need to show the code U made , so that we can do possible corrections in it
19th Mar 2018, 12:49 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
I am not familiar with java but i wrote the code in python if that helps you in any way :) https://code.sololearn.com/cMMruF75sswx/#py
19th Mar 2018, 1:38 PM
Tomer Sim
Tomer Sim - avatar
+ 1
Sorted from student number by what order? low-high? high-low? Please be more specfic
19th Mar 2018, 12:48 PM
Tomer Sim
Tomer Sim - avatar