0
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.

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by EMUGOD
0

goddamn i'm stupid. it was interpret2D, not interpret.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.