built-in Java classes/methods to convert between binary, decimal, and octal?
<p>i know of several general formulas for converting between binary, decimal, and octal, but i was wondering if java has any built-in methods or classes that convert between the three. for instance, in the Integer class, there are static methods such as toBinaryString, toOctalString, etc which allow for decimal conversion, but i haven't found any to convert the other way. anyone know of anything?</p>

<p>in particular, i am looking for methods to convert from octal and binary to decimal and between octal and binary</p>

<p>thanks! x</p>
