> Long id;
> String arg1 = "0b"; //arg1 can also have values like "01", "0a" etc
[quoted text clipped - 5 lines]
> correct method to use, but I'm not sure what the second parameter (radix) of
> this method is?
"Radix" is another word for "base".
If your string contains a base 16 number, specify 16.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Oliver Wong - 21 Dec 2005 21:36 GMT
>> Long id;
>> String arg1 = "0b"; //arg1 can also have values like "01", "0a" etc
[quoted text clipped - 11 lines]
>
> If your string contains a base 16 number, specify 16.
And in case that wasn't explicit enough, hexadecimal is base 16. Octal
is base 8. Binary is base 2. Decimal is base 10. Etc.
So for the OP's problem, yes, you want to use 16.
- Oliver