Console

Printing to Standard Output

The following functions are defined in the initialize file (/init.pnut). The names of functions are simillar to methods of PrintWriter class.

println(Object object)
print(Object object)
write(byte[] array , int offset , int length) or
(char[] array , int offset , int length)
write(byte[] array) or
(char[] array)
flush()

print() displays object's representation. println() appends "line.separator" to the stream. write() just calls a method "write" of the stream class.

Reporting errors

error(String string {, Context context })

error() displays an error message. If context is specified the message is written to the error stream of the context.


Back