I have the following 2 arrays and need to sort them so the ID number stays with the video it represents.
String[] video = {"Sleepless in Seattle", "You've got mail ", "Wizard of Oz ", "Something about Mary", "Toy Story II "};
int[] IDnum = {453, 845, 2364, 8052, 6250};
Like sort for IDnum but the videos sort the same way.
Sleepless in Seattle - 453
etc.
I know it should be easy and I can get one array to sort but the other one doesn't stay with it. I'm getting frustrated and have asked for help in class but no one seems to answer the question I'm asking. Thanks for any assistance you can give me.
Annie
String[] video = {"Sleepless in Seattle", "You've got mail ", "Wizard of Oz ", "Something about Mary", "Toy Story II "};
int[] IDnum = {453, 845, 2364, 8052, 6250};
Like sort for IDnum but the videos sort the same way.
Sleepless in Seattle - 453
etc.
I know it should be easy and I can get one array to sort but the other one doesn't stay with it. I'm getting frustrated and have asked for help in class but no one seems to answer the question I'm asking. Thanks for any assistance you can give me.
Annie