Hey
not sure if what you asked has been answered but you use the scanner if you want to Read from the keyboard or from a file.
If you want to use the scanner for something being read in from the keyboard then use:
import java.util.Scanner; // This goes at the top of your code.
Then
Scanner scan = new Scanner(System.in); // This would go below your declared variables. Systemin means reading from keyboard.
then use the
scan.next(); //for Strings
OR
scan.nextIntORscan.nextDouble // To go to the next.
Hope this helps not sure if this is what you meant