Hi, I have made myself a class like follows
class State {
static int[][] grid = new int[2][2];
static int parent;
static int depth;
}
And would like many instances of this class. I tried
State[] states = new State[1000];
But it does not set each instance correctly when I try states[0].grid = .... It treats it like one instance. What is the correct way to do this?
Thanks.