package eca.util;

import java.util.Scanner;

public class UserInputUtil {

    private static final Scanner SCANNER = new Scanner(System.in);

    public static String readLine() {
        return SCANNER.nextLine();
    }

    public static Integer readInteger() {
        String lineAsString = SCANNER.nextLine();
        return Integer.parseInt(lineAsString);
    }

    public static Double readDouble() {
        String lineAsString = SCANNER.nextLine();
        return Double.parseDouble(lineAsString);
    }
}

Create UserInputUtil so students can get stuff from the console easily.