Hi, I am a beginner in JAVA language...
I am making a simple sudoku game (in notepad -I have to use only notepad).
I have my sudoku tables stored in 2d arrays e.g sudoku1[9][9].
Lets say I have 5 2d-arrays, sudoku1....sudo ku5, and I want a random one to be chosen... how do I do that.
I know I have to use class Random, but how do I make it in this case (i.e 2d arrays)??
also
this is how u put values in a 2d array...
int [][] example2d=
{
{0, 3, 2},
{0, 5, 8},
};
how can u put values in a 3d array??
int [][][] example3d=
???????
I am making a simple sudoku game (in notepad -I have to use only notepad).
I have my sudoku tables stored in 2d arrays e.g sudoku1[9][9].
Lets say I have 5 2d-arrays, sudoku1....sudo ku5, and I want a random one to be chosen... how do I do that.
I know I have to use class Random, but how do I make it in this case (i.e 2d arrays)??
also
this is how u put values in a 2d array...
int [][] example2d=
{
{0, 3, 2},
{0, 5, 8},
};
how can u put values in a 3d array??
int [][][] example3d=
???????
Comment