
Untitled
By: a guest on
Jul 17th, 2012 | syntax:
None | size: 0.54 KB | hits: 16 | expires: Never
Java set value to multi-dim array --> token error
// Trying to create 2 dimensional array
// Can in Netbeans, but not Eclips Help
// error missing token '{' reported by Eclipse
int[][] xCoord=new int[cols][6];
for (int outLoop=0; outLoop < (xCoord[outLoop].length); outLoop++) {
for (int inLoop=0; inLoop<xCoord.length; inLoop++)
xCoord[outLoop][inLoop]=0;
}
// Works OK but intending to use finished method dynamically.
int[][] xCoordz= {{0,0,0,0,0,0},
{0,0,0,0,0,0},
{0,0,0,0,0,0} };