how to log the console output in java code example Example: how to print to the console in java System.out.println("Text");