Saturday, August 13, 2011

How do I link values in parallel arrays in java?

I have a project to do for school. I need a user to enter the names of rugby teeams into one array, and in the parallel array their corresponding score at the end of the season. I can do this with no problem. However I need these each team to be linked to their corresponding score so that when I sort the team name array in ascending alphabetical order the score array is altered accordingly. how do I do this?

No comments:

Post a Comment