title: Integer value comparison
body: <p>I'm a newbie Java coder and I just read a variable of an integer class can be described three different ways in the API.  I have the following code: </p>
  
  <pre><code>if (count.compareTo(0)) { 
              System.out.println(out_table);
              count++;
      }
  </code></pre>
  
  <p>This is inside a loop and just outputs <code>out_table</code>.<br>
  My goal is to figure out how to see if the value in integer <code>count &gt; 0</code>. </p>
  
  <p>I realize the <code>count.compare(0)</code> is the correct way? or is it <code>count.equals(0)</code>?  </p>
  
  <p>I know the <code>count == 0</code> is incorrect. Is this right? Is there a value comparison operator  where its just <code>count=0</code>?  </p>