title: Java negative int to hex and back fails
body: <pre><code>public class Main3 {
      public static void main(String[] args) {
          Integer min = Integer.MIN_VALUE;
          String minHex = Integer.toHexString(Integer.MIN_VALUE);
  
          System.out.println(min + " " + minHex);
          System.out.println(Integer.parseInt(minHex, 16));
      }
  }
  </code></pre>
  
  <p>Gives </p>
  
  <pre><code>-2147483648 80000000
  Exception in thread "main" java.lang.NumberFormatException: For input string: "80000000"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:459)
      at Main3.main(Main3.java:7)
  </code></pre>
  
  <p>Whats up?</p>