JAVA eclipse

为什么出现红线,怎样添加东西使红色横线消失,具体在图片中所示,这是java eclipse中的一个小问题在线解答!

img

for(int x= 0;x< row;x++);
for(int y= 0;y < colunm;y++);
都多了 分号; ,去掉分号就好了,你这代码就能运行了


public class Basic_17_ {
    public static void main(String[] args) {
        int row = 10;
        int column = 15;
        int layer = 5;
        int[][][] arrayThree = new int[row][column][layer];
        for (int x = 0; x < row; x++) {
            for (int y = 0; y < column; y++) {
                for (int z = 0; z < layer; z++) {
                    arrayThree[x][y][z] = x * column * layer + y * layer + z;
                    System.out.println(arrayThree[x][y][z] + "\t");
                }
            }
        }
    }
}

for循环的括号后面多了分号