I am making a program that keeps track of races. I would like to be able to move one race a certain number of spots away from where it used to be and then have all the things in between move down.
I have an array of "Rounds", and each "Round" has an array of "Races".
Round[] rounds = {new Round(), new Round(), new Round()};
Each Round has an array of Races.
Race[] races = {new Race(), new Race(), new Race()};
I could also represent like this:
0.0, 0.1, 0.2; 1.0, 1.1, 1.2; 2.0, 2.1, 2.2
I want to take the 0.2 object and move it forward 3 spots in between 1.2 and 2.0. Keep in mind that doing this will move the object in between arrays and therefore, have to move everything in between the three arrays. So it will look like this after moving:
0.0, 0.1, 1.0; 1.1, 1.2, 0.2; 2.0, 2.1, 2.2
Again, this is moving the object between arrays and not in the same one.
0.0, 0.1, 0.2; 1.0, 1.1, 1.2; 2.0, 2.1, 2.2to one list? ``0.0, 0.1, 0.2, 1.0, 1.1, 1.2, 2.0, 2.1, 2.2` Then move the race around. Then convert back into the array of arrays?