If your instruction state that you must use parallel arrays then what you have to do is each time you swap/move values in one array make the same swap/move in the other array.
Type: Posts; User: Junky
If your instruction state that you must use parallel arrays then what you have to do is each time you swap/move values in one array make the same swap/move in the other array.
Parallel arrays are evil. What you should do instead is create a Student class that holds the ID and score of each Student. Then you can have a single array (or List) to hold all the Student objects.