Java String Project Bases and Decimals

Create a class called BaseMaster  (spelled exactly like this)

 

//helper functions

the isNumeric() method returns true if every digit is an integer . It also allows for a single ‘.’ to represent a decimal point.

//@returns true if input represents a valid integer or floating point number
public boolean isNumeric(String in){

}
  //@returns input in base 'baseOut' //@precondition isNumeric(input) = true 

public String base10toOtherBase(String input, String baseOut){ 

}

 

 

example call return value
isNumeric(“3.1”) true
isNumeric(“3.1.1”) false
isNumeric(“3a”) true (assume base 16)
 isNumeric(“3D”)  true (assume base 16)

To get A+, you need to make base10toOtherBase() support bases 2-10 AND base 16