Cómo imprimir en la consola Java

public class ConsoleTest {
    public static void main(String[] args) {
        System.out.println("Console is: " + System.console());
    }
}
Tame Teira