klyn.Application.input
method

    public static native input(prompt as String, inputStream as TextReader) as String

Description

Reads a line from the given input stream, after optionally printing a prompt.

    name = Application.input("Name: ", Application.in)
    print("Hello", name)

Parameters

- prompt Prompt text (default: empty).
- inputStream Input stream (default: Application.in).

Returns

The line read, without the trailing newline.