question on multidimensional array

From: Huub (v.niekerk_at_freeler.nl)
Date: 05/30/04


Date: Sun, 30 May 2004 09:42:51 +0200

Hi,

I'm trying to pass an element of a multidimensional array to a method in
a different class. However, I get these errors:

> Spel.java [82:1] illegal start of expression
> speelveld.plaatsPion([0][0]);
> ^
> Spel.java [82:1] ')' expected
> speelveld.plaatsPion([0][0]);
> ^
The method in the other class is this:
> private int vak[][] = new int[3][3];
>
>
> public int plaatsPion(int vak[][])
> {
> }

Can somebody please explain what's wrong?

Thanks

Huub