title: Java: for loop, incompatible types
body: <p>I'm trying to run this for loop;</p>
  
  <pre><code>        for (int col= 0; grid[0].length; col++)
  </code></pre>
  
  <p>However every time I try to compile I get an error stating 'incompatible types - found int but expected boolean'</p>
  
  <p>I can't work out what I'm doing wrong!</p>