You could also have used parseInt("12345670",8) for octal numbers.
Type: Posts; User: helloworld922
You could also have used parseInt("12345670",8) for octal numbers.
You'll have some trouble converting the second number to an integer... it's longer than 4 bytes :P
Binary String to Decimal int:
public static int binaryToDecimal(String num)
{
int sum...
Technically, it only matters on displaying them, or in the actual code, since when the program is running, everything is in binary. To enter a hex number add the 0x to the front of the number....