title: Java parseInt() question
body: <p>Why is it that when I use parseInt for this:</p>
  
  <pre><code>private String certainNumber;
  
  public int getNumber()
  {
      return Integer.parseInt(certainNumber);
  }
  </code></pre>
  
  <p>It compiles.</p>
  
  <p>But If I were to do this:</p>
  
  <pre><code>public String getStreetNumber()
  {
      return streetNumber;
  }
  </code></pre>
  
  <p>and parseInt the returned value like so:</p>
  
  <pre><code>@Override
  public int compareTo(Object o) 
  {
      Address tempAddress = (Address)o;
      if(Integer.parseInt(getStreetNumber()) &lt; tempAddress.Integer.parseInt(getStreetNumber()))
      {
          return -1;
      }
  ... // etc.
  }
  </code></pre>
  
  <p>It does not compile?</p>
  
  <p>edit: tried the suggestions... still not compiling?</p>
  
  <p>edit2: Thanks for the help guys!</p>