I needed to convert a very big binary value into its decimal equivalent. As it is a big integer I was using BigInteger. So how do I convert this binary number to a BigIntege
String binaryValue = "11111111"; BigInteger bi = new BigInteger(binaryValue, 2);