title: CodeHS Battleship Java
body: <p>I'm currently doing coding online to learn coding and am doing the Battleship problem. In this problem you're given methods and the parameters they accept in code.</p>
  
  <p>I am stuck on a problem where the user inputs a row and column and the code verifies whether a row and column were inputted.</p>
  
  <pre><code>// Has the location been initialized
  public boolean isLocationSet()
  {
      if(row == null  &amp;&amp; col == null)
      {
          return false;
      }
  
      return true;
  }
  </code></pre>
  
  <p>The error I get says: Incomparable types int and (it cuts off but I'm assuming it means null or boolean)</p>
  
  <p>How would I be able to say, if the expected ints <code>row</code> and <code>column</code> are empty then return false, otherwise return true?</p>