Firstly do you know how to use the Scanner class to read input from the user?

You need to use:

import java.util.Scanner;

to read in a number from the user use: