Возможно нужно this?
Что делать?
package com.javarush.task.task06.task0610;
import java.util.*;
/*
Класс ConsoleReader
*/
public class ConsoleReader {
Scanner scan = new Scanner(System.in);
public static String readString() throws Exception {
String a = scan.nextLine();
return a;
}
public static int readInt() throws Exception {
int i = scan.nextInt();
return i;
}
public static double readDouble() throws Exception {
double d = scan.nextDouble();
return d;
}
public static boolean readBoolean() throws Exception {
boolean b = scan.nextBoolean();
return b;
}
public static void main(String[] args) {
}
}