Hey,
I have the following code in C-Sharp:
byte newByte = byte.Parse(hex, System.Globalization.NumberStyles.HexNumber);
What's the equivalent in Java ?
Thanks !
Printable View
Hey,
I have the following code in C-Sharp:
byte newByte = byte.Parse(hex, System.Globalization.NumberStyles.HexNumber);
What's the equivalent in Java ?
Thanks !
Have you tried?
Code:Integer.parseInt(hex, 16);
Thanks !