title: Go to another method from a boolean method
body: <p>guys, I'm programming the Gomoku game in Java and I am a little bit stuck with a stupid problem. I want the player to be able to block a field so I made two methods, both of them boolean:</p>
  
  <p>DoYouWishToBlockAField and BlockingField. I want to make it so that when the first one is true, I go to the second, and when it's false, of course, break the operation and don't block any field. Can you help me please ?</p>
  
  <pre><code>    public static void DoYouWishToBlockAField(){
     if(true){
         BlockingField();
     } else (false);
  </code></pre>
  
  <p>Here i get the error message and I've been wondering how to make it right.</p>
  
  <p>}</p>
  
  <pre><code>   public static void BlockingField(int theSeed) {
        boolean validInput = false;  // for input validation
        do {
           if (theSeed == BlockedField1) {
              System.out.print("Player 1: Block a Field: ");
           } else{
              System.out.print("Player 2: Block a Field: ");
           }
           int row = in.nextInt() - 1;  // array index starts at 0 instead of 1
           int col = in.nextInt() - 1;
           if (row &gt;= 0 &amp;&amp; row &lt; ROWS &amp;&amp; col &gt;= 0 &amp;&amp; col &lt; COLS &amp;&amp; board[row][col] == Empty) {
              currentRow = row;
              currentCol = col;
              board[currentRow][currentCol] = theSeed;  // update game-board content
              validInput = true;  // input okay, exit loop
           } else {
              System.out.println("The cell at (" + (row + 1) + "," + (col + 1)
                    + ") is taken. Try another move.");
           }
        } while (!validInput);  // repeat until input is valid
     }
  </code></pre>