Why this code doesn't work? I checked it, and it return right values, but verification all the time shows every requirements are not fulfil
"The readString method must read and return a String."
"The readInt method must read and return an int."
etc.
package com.codegym.task.task06.task0610;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
/*
ConsoleReader class
*/
public class ConsoleReader {
static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static String readString() throws Exception {
//write your code here
String a = reader.readLine();
return a;
}
public static int readInt() throws Exception {
//write your code here
int b = Integer.parseInt(reader.readLine());
return b;
}
public static double readDouble() throws Exception {
//write your code here
double c =Double.parseDouble(reader.readLine());
return c;
}
public static boolean readBoolean() throws Exception {
//write your code here
boolean d = Boolean.parseBoolean(reader.readLine());
return d;
}
public static void main(String[] args) throws Exception {
}
}