The first call to keyboard.next() gets one word (the word I) from the keyboard. The program displays this word on the screen.
The second call to keyboard.next() gets another word (the word enjoy) from the keyboard. The program displays this word on the screen.
The call to keyboard.nextLine() gets the input line's remaining characters (the characters (blank space)learning Java.) from the keyboard. The program displays these characters (including the first blank space) on the screen.
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.
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.