This method should take in a decimal number as an int and


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.

static String decimalToBase(int number, int radix) - this method should take in a decimal number as an int and the base (or radix) you wish to convert that number to and return the String version of the decimal number in that base.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: This method should take in a decimal number as an int and
Reference No:- TGS01525250

Expected delivery within 24 Hours