title: What is the differences between Int and Integer in Scala?
body: <p>I was working with a variable that I had declared as an Integer and discovered that > is not a member of Integer. Here's a simple example:</p>
  
  <pre><code>scala&gt; i
  warning: there were deprecation warnings; re-run with -deprecation for details
  res28: Integer = 3
  
  scala&gt; i &gt; 3
  &lt;console&gt;:6: error: value &gt; is not a member of Integer
         i &gt; 3
           ^
  </code></pre>
  
  <p>Compare that to an Int:</p>
  
  <pre><code>scala&gt; j
  res30: Int = 3
  
  scala&gt; j &gt; 3
  res31: Boolean = false
  </code></pre>
  
  <p>What are the differences between Integer and Int? I see the deprecation warning but it's unclear to me why it was deprecated and, given that it has been, why it doesn't have a > method.</p>