Tim Moores wrote:. . . use Long.parseLong instead.
But
0xff19aed8 is negative; if you parse it as a
long, it will come out positive. What happens with
Integer.valueOf("ff19aed8", 0x10).intValue()? Can you use any of the
unsignedXXX() methods introduced in Java8? Is
this method any use?
jshell> Integer.parseUnsignedInt("ff19aed8", 0x10);
$2 ==> -15094056
jshell> System.out.printf("%#010x%n", Integer.parseUnsignedInt("ff19aed8", 0x10));
0xff19aed8
$6 ==> java.io.PrintStream@5a10411
Yes, it would appear, “That's the way to do it.”