J2: Output text

Video

In this lesson, you will learn how to output plain text in Java.

Make sure to like and subscribe!

Syntax

In Java, you can output plain, unformatted text using the following syntax:

System.out.println("TEXT_GOES_HERE");

You can also output an error message, which will show up in red:

System.err.println("TEXT_GOES_HERE");