To use the Input class, you need to first create an instance of the Input class and make sure that you use that same instance in all your method calls, as folows:
Input myinput = new Input();
int number = myinput.readInt("Please enter a number: ");
System.out.println("You entered " + number);
All methods in Input class:
char readChar() - read a char from the user
char readChar(String prompt) - prompt the user and also read a char from the user
String readString() - read a String from the user
String readString(String prompt) - prompt the user and also read a String from the user
int readInt() - read an integer from the user
int readInt(String prompt) - prompt the user and also read an integer from the user
long readLong() - read a long from the user
long readLong(String prompt) - prompt the user and also read a long from the user
float readFloat() - read a float from the user
float readFloat(String prompt) - prompt the user and also read a float from the user
double readDouble() - read a double from the user
double readDouble(String prompt) - prompt the user and also read a double from the user
void pause() - prompt the user to press ENTER key to continue