I know we can use PrintStream to print lines to a given file:
PrintStream output;
output = new PrintStream("./temp.txt");
output .println("some output text");
However, can we use PrintStream to print lines to the command line?
I've looked through the Java docs and it seems PrintStream constructor can take a file path or an OutputStream (is there a OutputStream subclass that would print to command line?)