I'm working with java, and I'm trying to play with numbers in different bases (2,8 and 10).
So, I'm asking this question to change a binary number in string format into number in base 10
such as 11000000101010000000000000111111/base 2
I tried Integer.parseInt(str,radix) however I got errors. exepetion ""Exception in thread "main" java.lang.NumberFormatException: For input string: "11000000101010000000000000111111" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source)