I've got an assignment for my
Java programming class and I'm having a heck of a time getting it to work.
The assignment is to have a 2d array which is composed of exam #'s for rows, students names for columns, and grades for the data. We need to be able to sort the grades from highest to lowest for each individual student which means we need to move the row labels to correspond with those tests
ie
...........John
Exam 1...87
Exam 2...62
Exam 3...92
Needs to become
...........John
Exam 3...92
Exam 1...87
Exam 2...62
We also need to be able to sort the columns by grades in decending order for the entire group of students
...........Steve....Cory....Adam
Exam 1...87.......92......53
Needs to become
...........Cory.....Steve...Adam
Exam 1...92.......87......53
I can sort all the data, it's moving the labels that I'm having an extreme amount of difficulty with. Any help would be greatly appreciated.
Thanks
Kirk
[ November 05, 2004: Message edited by: Kirk Somero ]
[ November 05, 2004: Message edited by: Kirk Somero ]