Console

Functions

print

Description

Prints given data.

Parameters

args - Object: The objects to print.

Returns

String - The printed string.

println

Description

Prints given data and a newline.

Parameters

args - Object: The objects to print.

Returns

String - The printed string.

input

Description

Accepts user input.

Parameters

prompt - String: A string to print infront of the input.

limit - Integer: The limit of characters accepted by the input.

Returns

String - The text input.

inputln

Description

Accepts user input and adds a newline.

Parameters

prompt - String: A string to print infront of the input.

limit - Integer: The limit of characters accepted by the input.

Returns

String - The text input.

clear

Description

Clears the terminal.

Parameters

None

Returns

String - The text cleared.

Last updated