Hi,

I have to write a program that will alow the user to specify a number (decimal, binary, or hexadecimal) and a base to convert to (decimal, binary, or hexadecimal) using subroutine methods and menu - so that the user can choose their options.

I know how to convert with these number systems on paper using a pencil. However, I am not sure how to covert them in a java program. (I am using ready to program). Is there a formula I could use? Like, to find the square of x, I can do sqrt x.. is there something similar for converting these number systems? If not, how can I do it in java?

I would appreciate any advice you could give me very much.

Thank you!!