Console

Printing to Standard Output

The following functions are defined in the pnuts::lib module. The names of functions are simillar to methods of PrintWriter class.

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

print() displays objects one by one. println() additionally 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