print console in java code example
Example 1: java text ouput to console
System.out.println("Hello world!");
//This will be printed out to the console and requires no imports.
Example 2: how to print to the console in java
System.out.println("Text");