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