myBreakLabel: for (int x = 0; x < 10; x++) { for (int y = 0; y < 10; y++) { if (array[x][y].getState == true) { break myBreakLabel; } } }