int[][]matrix1={
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,1},
{0,0,0,0,0,1,0},
{0,0,0,0,1,0,0},
{0,0,0,1,0,0,0},
};
int[][]matrix2={
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,1,0,0,0},
{0,0,0,0,1,0,0},
{0,0,0,0,0,1,0},
{0,0,0,0,0,0,1},
};
int[][]matrix3={
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,1},
{0,0,0,0,0,0,1},
{0,0,0,0,0,0,1},
{0,0,0,0,0,0,1},
};
int[][]matrix4={
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,0,0,0,0},
{0,0,0,1,1,1,1},
};
System.out.println(isGameEnd(matrix1));
System.out.println(isGameEnd(matrix2));
System.out.println(isGameEnd(matrix3));
System.out.println(isGameEnd(matrix4));
실행해보시면 될 것 같습니다.
break와 continue에 대해 다시 공부해보세요.