int decimalValue = Integer.parseInt(strNum, 2);
// Binary to Decimal
String binaryValue =
Integer.toString(num, 2) // Decimal to Binary
Use 8 for Octal and 16 for Hexadecimal numbers.
int decimalValue = Integer.parseInt(strNum, 2);
// Binary to Decimal
String binaryValue =
Integer.toString(num, 2) // Decimal to Binary