Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java's buit-in libraries (or 3rd party code) to do base-conversions

Is there any built-in libraries (or any good 3rd party code) that support converting a number from any arbitrary base A to another base B?

Thanks,

like image 835
One Two Three Avatar asked Feb 21 '23 09:02

One Two Three


1 Answers

Um, Integer.toString(int, base) and Integer.parseInt(String, base)...?

like image 187
Louis Wasserman Avatar answered Feb 22 '23 22:02

Louis Wasserman