Witam,
Proszę o pomoc, ponieważ już się pogubiłem. Podobno moje metody nic nie zwracają.
package pl.codegym.task.task06.task0610;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Klasa ConsoleReader
*/
public class ConsoleReader {
static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
public static String readString() throws Exception {
//tutaj wpisz swój kod
String s = reader.readLine();
System.out.println(s);
return s;
}
public static int readInt() throws Exception {
//tutaj wpisz swój kod
int a = Integer.parseInt(reader.readLine());
return a;
}
public static double readDouble() throws Exception {
//tutaj wpisz swój kod
double b = Double.parseDouble(reader.readLine());
return b;
}
public static boolean readBoolean() throws Exception {
//tutaj wpisz swój kod
String c = reader.readLine();
boolean d = Boolean.parseBoolean(c);
return d;
}
public static void main(String[] args) {
}
}