Lessons

Java tutorial

Java Output

System.out.println writes a value and then moves to the next line. System.out.print writes a value and stays on the same line. Calling println with nothing simply moves to the next line.

Example

Edit the code and run it again. This runner stays in your browser and covers the syntax used in these lessons.

Output

Run the example to see output here.

What this code does

The first two calls print Java and Guide on one line. The empty println finishes that line, and the last call prints the sentence underneath.