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