public int read() { IO io = new IO(); int value; boolean ok; do { value = io.readInt(title); ok = limits.includes(value); if (!ok) { io.writeln("ERROR!!! La opci�n debe ser entre 1 y 9" + limits + " incluidos"); } } while (!ok); return value; }
public int read() { IO io = new IO(); int value; boolean ok; do { value = io.readInt(title); ok = limits.includes(value); if (!ok) { io.writeln("El valor debe estar entre " + limits); } } while (!ok); return value; }
private void setColumn(int column) { assert LIMITS.includes(column); coordinate.setColumn(column); }
private void setRow(int row) { assert LIMITS.includes(row); coordinate.setRow(row); }