На компиляторе нормально, тут запускается, ни одно условие тестирования не проходит
package com.javarush.task.task06.task0610;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Класс ConsoleReader
*/
public class ConsoleReader {
public static String readString(String enter) throws Exception {
String ourString = enter;
return ourString;
}
public static int readInt(String enter) throws Exception {
int ourInt = Integer.parseInt(enter);
return ourInt;
}
public static double readDouble(String enter) throws Exception {
double ourDouble = Double.parseDouble(enter);
return ourDouble;
}
public static boolean readBoolean(String enter) throws Exception {
String ourBoolean = enter;
if (ourBoolean.equalsIgnoreCase("true")) return true;
else if (ourBoolean.equalsIgnoreCase("false")) return true;
else return false;
}
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Reading String");
String s1 = br.readLine();
readString(s1);
System.out.println("Reading int");
String s2 = br.readLine();
readInt(s2);
System.out.println("Reading double");
String s3 = br.readLine();
readDouble(s3);
System.out.println("Reading boolean");
String s4 = br.readLine();
readBoolean(s4);
br.close();
}
}