encoding - Java convert String text to base36 and from base36 to hex -
is there api in java convert simple string base36/base10 , base36/base10 hex representation.
example: input: '-22eevx' encoding base36
output: f8 8d 33 23
use integer
class , radix parameter of parseint
, , tohexstring
same class.
integer.tohexstring(integer.parseint("-22eevx", 36));
for base10 shorter (you omit radix parameter, assumed 10
):
integer.tohexstring(integer.parseint("-22"));
Comments
Post a Comment