title: Integer value comparison with null vallue
body: <p>Hi I had a question related to Integer comparison. </p>
  
  <p>say I have two Integer count1 and count2, I want to implement the following action:</p>
  
  <pre><code>if (count1 bigger than count2)
      do something;
  else
      do something else;
  </code></pre>
  
  <p>I know I can use count1.compareTo(count2) > 0. however, when count1 or count2 is a null value, program will return a NullPointerException. Is there a way to implement that if count1 or count2 is a null value, return false when doing comparison between count1 and count2?</p>