import java.util.Scanner; Scanner scan = new Scanner(system.in); // ask and pick up responses scan.close();//helps to avoid memory leaks