Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sorted two items at same time

990378Feb 11 2013 — edited Feb 11 2013
My program (one single program) is required to read in a list of student records from an input file studentList.txt and produces two output files
studentList-SID.txt, in this file the student records are ordered by student ID
I am not problem above this properties USING ARRAY SORT.

I don't know how to sort another item using same constructor.
studentList-ProgSID.txt, in this file the student records are ordered by programme code and student ID, i.e. students of ABCD are placed in front of EFGH students, and students in the two programmes are ordered by student ID.

Any one give some hints for me thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2013
Added on Feb 11 2013
1 comment
142 views