java web print at console code example
Example 1: console printing in java
public class writingInTheConsole {
public static void main(String[] args) {
System.out.println("Hello Java! I made Minecraft: Java Edition!");
}
}
Example 2: How to print in console java
public class ConsoleTest {
public static void main(String[] args) {
System.out.println("Console is: " + System.console());
}
}