Solutions to the Try It Out Exercises in Beginning Programming with Java For Dummies, 6th Edition
by Barry Burd

Chapter 5: Composing a Program

In this chapter:

Getting single words and entire lines of text

The program's output is as follows:
I
enjoy
 learning Java.
When you run the program,

Compile-time errors

As soon as you make any of the Compile-time errors changes, IntelliJ's editor displays red marks. The program contains an error that makes it unreadable (as far as Java is concerned). If you ask IntelliJ to run the program, IntelliJ refuses.

Allowable changes in spacing and indentation

When you make the Allowable changes in spacing and indentation, IntelliJ's editor doesn't display any red marks. If you ask IntelliJ to run the program, the program runs as expected.