I am trying to translate a string containing a binary value (e.g. 000010001010011), the value is Hex. (453)
I try several options, but basically I get the converted value of each individual character. (0 = 30 1 = 31)
I have a function that translates my input into binary through a non-mathematical way, but through a series of if if else if statements. (Values ββare not calculated because they are not standard.) The binary code is contained in the String variable "binOutput"
I currently have something like this:
String bin = Integer.toHexString(Integer.parseInt(binOutput));
But this does not work at all.
Yuri
source share