I want to pass a int[][][]
to a method points_of_game
(and a int[][]
) without first initialising the int[][][]
as another variable.
My Code :
int[][] original_map = new int[9][9];
int[][] current_map = new int[9][9];
int[][] initial_map = new int[9][3];
.....
.....
.....
// INITIALISING THE int[][][] WITH THE VARIABLE return_maps WHICH I WANT TO AVOID.
int[][][] return_maps = {this.original_map, this.current_map};
points_of_game(return_maps, this.initial_map);
What I want:
int[][] original_map = new int[9][9];
int[][] current_map = new int[9][9];
int[][] initial_map = new int[9][3];
.....
.....
.....
// SOMETHING SIMILAR TO BELOW.
points_of_game({this.original_map, this.current_map}, this.initial_map);