package com.codegym.task.task06.task0610; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class ConsoleReader { //Scanner sc = new Scanner(System.in); public static String readString() throws Exception { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); return s; } public static int readInt() throws Exception { Scanner sc = new Scanner(System.in); int i = sc.nextInt(); return i; } public static double readDouble() throws Exception { Scanner sc = new Scanner(System.in); double d = sc.nextDouble(); return d; } public static boolean readBoolean() throws Exception { Scanner sc = new Scanner(System.in); boolean b = sc.nextBoolean(); if (b == true) { System.out.println("true"); } else if (b == false) { System.out.println("false"); } sc.close(); return b; } public static void main(String[] args) { //Scanner sc = new Scanner(System.in); } }