예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 private void setColumn(int column) {
   assert LIMITS.includes(column);
   coordinate.setColumn(column);
 }
예제 #4
0
 private void setRow(int row) {
   assert LIMITS.includes(row);
   coordinate.setRow(row);
 }