title: this method must return a result of type boolean, java
body: <pre><code> public boolean Winner() {
      for (int z = 0; z &lt; 3; z++) {
              if (board[z] != null &amp;&amp; board[z] == board[z+3] &amp;&amp; board[z] == board[z+6]
                      ) {
                  return true;
              } 
      }
      for(int i=0; i&lt;7;i+=3){
          if (board[i] != null &amp;&amp; board[i] == board[i+1] &amp;&amp; board[i] == board[i+2]) {
  
      return true;}
      }
  }
  </code></pre>
  
  <p>It returns me this error: this method must return a result of type boolean. What am I doing wrong?</p>