Solutions to the Try It Out Exercises in Beginning Programming with Java For Dummies, 5th 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, Eclipse's editor displays red marks. The program contains an error that makes it unreadable (as far as Java is concerned). If you ask Eclipse to run the program, Eclipse refuses.

Allowable changes in spacing and indentation

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