Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert the base of a 16 into the base of a single byte 10 with java?
How to convert the base of a 16 into the base of a single byte 10 with java?
Can be realized by integers. Parseint (strings, int radix) method. The radix is binary, which can be 2 (binary), 10 (decimal), 16 (hexadecimal) and so on.

For example:

system . out . print(integer . parse int(" F ", 16)); );

The result is: 15.