Class ConsoleReader

    • Constructor Detail

      • ConsoleReader

        public ConsoleReader()
    • Method Detail

      • readLine

        public abstract String readLine​(String prompt)
        Reads next line. If no input, then the method blocks the thread.
        Parameters:
        prompt - prompt
        Returns:
        next line or null if EOF is reached
      • get

        public static ConsoleReader get()
        Creates a new instance.
        Returns:
        instance of console reader