Can somebody please help me figure out where I went wrong?
This is the problem and I have attached my code.
Write a class with a main() method and two static methods. 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. This should loop until the user enters the integer 0.
Your static methods will be:
public static boolean validateLength(int); // returns true if the length of the int parameter is 1 digit long. Returns false otherwise.
public static String covertIntegerToWords(int); // returns a string of the word that represent the integer passed as an argument.