In this assigment, you have to implement a simple tour planing system. The data for the available tours, each with multiple way points, is statically given. A single waypoint consists of a x-value and a y-value. I have to write 2 function: int getCountOfTours- returns the number of available tours int[][] createDeepCopyOfTour - returns a deep copy of the tour at the index idx
I have done the first function, but I don't understand the second function createDeepCopyOfTour
I want to figure it out how the second function works. Please help me. thank you so much in advance!! Here is my code:
private static final int[][][] TOUR = new int[][][]{
{{0, 0}, {4, 0}, {4, 3}, {0, 3}},
{{0, 0}, {3, 0}, {3, 4}, {0, 0}},
{{1, 3}, {3, 2}, {0, 4}, {2, 2}, {3, 1}, {1, 4}, {2, 3}},
{{-2, -1}, {-2, +3}, {4, 3}, {0, 0}}
};
public static int[][] createDeepCopyOfTour(int idx) {
throw new UnsupportedOperationException("Not supported yet.");
//I dont understand about this function.
}