Feb 15, 2013 10:02 PM
(This post was last modified: Feb 15, 2013 10:05 PM by +TOAST.)
Heres a java challenge for you folks bored at home.
Write a method to convert a number of any base to another number of any base.
example header:
Heres an example message:
This should take the base 16 String 24AF, and convert it to a base 10 number.
Was just thinking about how to do this last night and I already have mine finished. Good luck :)
Write a method to convert a number of any base to another number of any base.
example header:
Code
public static String toBaseX(String orig, int base, int outBase)Heres an example message:
Code
System.out.println(toBaseX("24AF", 16, 10));This should take the base 16 String 24AF, and convert it to a base 10 number.
Was just thinking about how to do this last night and I already have mine finished. Good luck :)

