title: Android two integers with same value not equating properly
body: <p>I'm in not a java guy, so I'm not sure if this is just a language issue.</p>
  
  <p>I am writing an Android app.  At one point in the app I compare to intgers (version #) to see what version of the app they are using, to perform some action if they are not up to date.  I notice that my action code is always being run.  So I checked with a debugger and where I check to see if they are running the correct version, I have code like this:</p>
  
  <pre><code>if (savedVersionCode != currentVersionCode){
     //perform work
  }
  </code></pre>
  
  <p>both <code>savedVersionCode</code> and <code>currentVersionCode</code> are Integers and are equal to the same value (226 in this case),  but it still jumps in and performs the work. </p>
  
  <p>I do notice that although that values are both 226,  each integer (if you inspect it in eclipse) have an <code>id</code>  and they are both different.</p>
  
  <p>Any ideas on whats going on here?</p>