Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
println("This is what I want to say.")
Console.err.println("standard error")
Console.withOut(new PrintStream("out.txt")) {
println("anything you want to write")
Console.out.println("Hi. I'm stdin again!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.