title: java boolean method return statement
body: <p>I'm trying to program a game, and I'm making methods to check the different sides of a player for terrain. I'm using a boolean method, but netbeans is telling me I don't have a return statement.</p>
  
  <pre><code>public boolean checkTerrainDown(Level levelToCheck){
      for(Terrain terrainToCheck: levelToCheck.levelTerrain){
          if(y+h&lt;terrainToCheck.getY()){
              return true;
          }else{
              return false;
          }
      }
  }
  </code></pre>