Static methods that meet the method signatures


Need to write a bat. file that contains two static methods that meet the method signatures as described below. Your program should prompt the user for a single-digit integer. Your program should print out to the screen the integer written out as a word or it should print an error if the entry is out of bounds. This will loop until the user enters the integer 0. You must use both static methods in your program.

Your static methods will be:
public static boolean validateInput(int); // returns true if the length of the int parameter is 1 digit long. Returns false otherwise.
public static String convertInput(int); // returns a string of the word that represent the integer passed as an argument.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Static methods that meet the method signatures
Reference No:- TGS081051

Expected delivery within 24 Hours