Write a Java program that has at least the following two methods. You should thoroughly test your methods on several values.
static int baseToDecimal(String num, int radix) - this method should take in a string representing a number and the base (or radix) of that number and should convert that number to its decimal equivalent and return that value as an int. You may assume that radix is a number between 1 and 36.
Comments
Leave a comment