Example
intN1 = 14;//decimal turns into 16 binary:integer.tohexstring (N1);//decimal into octalinteger.tooctalstring (N1);//decimal turns into binaryInteger.tobinarystring (12);//hex turns into decimalInteger.valueof ("FFFF", 16). toString ();//Hex turns binaryInteger.tobinarystring (integer.valueof ("FFFF", 16));//hex turns into octalInteger.tooctalstring (integer.valueof ("FFFF", 16));//octal turns into decimalInteger.valueof ("576", 8). toString ();//octal turns into binaryInteger.tobinarystring (integer.valueof ("23", 8));//octal turns into hexadecimalInteger.tohexstring (integer.valueof ("23", 8));//Binary goto DecimalInteger.valueof ("0101", 2). toString ();//Binary turn octalInteger.tooctalstring (Integer.parseint ("0101", 2));//Binary turn hexInteger.tohexstring (Integer.parseint ("0101", 2));Extended
Hex Turn Binary
Public string hexstring2binarystring (String hexstring) { int deval = integer.valueof (hexstring, ); return integer.tobinarystring (deval);}
Java binary Conversion