question on multidimensional array
From: Huub (v.niekerk_at_freeler.nl)
Date: 05/30/04
- Next message: Andrew Thompson: "Re: question on multidimensional array"
- Previous message: Andrew Thompson: "Re: Squeezy Applet - Pushing the limits"
- Next in thread: Andrew Thompson: "Re: question on multidimensional array"
- Reply: Andrew Thompson: "Re: question on multidimensional array"
- Reply: Tony Morris: "Re: question on multidimensional array"
- Reply: Ryan Stewart: "Re: question on multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Andrew Thompson: "Re: question on multidimensional array"
- Previous message: Andrew Thompson: "Re: Squeezy Applet - Pushing the limits"
- Next in thread: Andrew Thompson: "Re: question on multidimensional array"
- Reply: Andrew Thompson: "Re: question on multidimensional array"
- Reply: Tony Morris: "Re: question on multidimensional array"
- Reply: Ryan Stewart: "Re: question on multidimensional array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]