Code example for Scanner

Methods: nextDouble, nextInt

0
    public static int N;
    public static double STEP;
    public static double EPS;
 
    public EntryPoint() throws FileNotFoundException { 
        Scanner scanner = new Scanner(new File("input"));
        LOWER_LIMIT = scanner.nextDouble();
        UPPER_LIMIT = scanner.nextDouble();
        N = scanner.nextInt();
        EPS = scanner.nextDouble();
        STEP = (UPPER_LIMIT - LOWER_LIMIT) / (N - 1);
    } 
 
    public static void main(String[] args) throws FileNotFoundException {
        new EntryPoint(); 
        new ActionHandler().run(); 
 
    } 
}