Interface Console

    • Method Detail

      • printf

        Console printf​(String fmt,
                       Object... args)
        Convenience method which writes formatted String.
        Parameters:
        fmt - format String
        args - arguments to replace format specifiers in format String
        Returns:
        this console
        See Also:
        Console.printf(String, Object...)
      • readLine

        String readLine​(String fmt,
                        Object... args)
        Writes formatted prompt and reads single line.
        Parameters:
        fmt - format String
        args - arguments to replace format specifiers in format String
        Returns:
        the line
        See Also:
        Console.readLine(String, Object...)
      • readPassword

        char[] readPassword​(String fmt,
                            Object... args)
        Writes formatted prompt and reads password. Hidden input should be preferred if possible. Implementations which cannot hide input should display a warning that entered text will be visible.
        Parameters:
        fmt - format String
        args - arguments to replace format specifiers in format String
        Returns:
        the password
        See Also:
        Console.readPassword(String, Object...)
      • readPassword

        char[] readPassword()
        Reads password. Hidden input should be preferred if possible. Implementations which cannot hide input should display a warning that entered text will be visible.
        Returns:
        the password
        See Also:
        Console.readPassword()