import java.util.Scanner;

declare the following in your constructor:


source = new Scanner(System.in);

declare the variable:

private Scanner source;