If you don't bother in receive those convertions in a
String format, you can use the
Integer's methods:
toBinaryString(int)toOctalString(int)toHexalString(int)However, if you declare an int variable and atribute a number prefixed with the zero digit, you assigning an actal value. The same happens for an hax value, if you prefix the number with "0x".