int[] h0 = new int[] {0,0,0,0,0,0,0,0};
int[] h1 = new int[] {0,8,8,0,0,8,8,0};
int[] h2 = new int[] {0,8,0,0,0,8,8,0};
int[] h3 = new int[] {0,0,0,6,9,0,0,0};
int[] h4 = new int[] {0,0,0,9,6,0,0,0};
int[] h5 = new int[] {0,8,0,0,0,0,8,0};
int[] h6 = new int[] {0,8,8,0,0,8,8,0};
int[] h7 = new int[] {0,0,0,0,0,0,0,0};
int[][] field = new int[][] { h0,h1,h2,h3,h4,h5,h6,h7 };
and
public void paint (Graphics page)
{
for(int i=0; i < 64; i++)
{
map.interpret(field, page);
}
}
gets me
interpret(int[],int,java.awt.Graphics) in interpreter2d cannot be applied to (int[][],java.awt.Graphics)
what is my problem here? how is the 2d int array being considered as a 1D int array and an int? i'm pretty sure my initialization is fine.