code as following
...
String s1=Integer.toBinaryString(-1073741824)
System.out.println(s1);
int i2=Integer.parseInt(s1,2);
...
the output is ...
11000000000000000000000000000000
java.lang.NumberFormatException: For input string: "11000000000000000000000000000000"
at java.lang.NumberFormatException.forInputString(Num berFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:480)
at com.main.Tester.main(Tester.java:18)
what's the matter? how to resolve it?