title: parseInt: invalid int "0"
body: <p>Whenever I want to parse the string <code>"0"</code> in Java to <code>0</code> (int) it throws  a InvalidInt-Error.<br>
  <s>However strings like <code>"1"</code>, <code>"2"</code> etc. work.</s></p>
  
  <p><strong>UPDATE:</strong> Other numbers don't work as well.</p>
  
  <p>I'm fetching the HTML source code of a PHP-File from my web page and this web page only displays one number.</p>
  
  <p>Code:</p>
  
  <pre><code>String[] result = sourceCode.trim().split("&lt;br&gt;");
  for (int i = 0; i &lt; result.length; i++)
  {
      result[i] = result[i].trim().replace("\n", "").replace("\r", "");
  }
  
      if (Integer.parseInt(result[0]) &gt; 0) 
      {
           //Do Something
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/93GH4.png" alt="Error Message"></p>