Another Example

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.

Answer:

Each System.out.println statement will write out the characters inside the quote marks:

A bird came down the walk
He did not know I saw;
He bit an angle-worm in halves
And ate the fellow, raw.

Another Example

The program is much like the "Hello World!" program but the main method has more statements inside of it. It would be a very good idea for you to create this program with Notepad, and to compile and run it.

Now say that your assignment is to create a program that writes the following to the computer monitor:

On a withered branch
A crow has just alighted:
Nightfall in autumn.

Here is the program that is to perform this task:

class Haiku
{
  public static void main ( String[] args )
  {
    System.out.println(_______________________________);
    System.out.println(_______________________________);
    System.out.println(_______________________________);
  }
}

QUESTION 11:

The program is not yet finished;
Can you complete it?
Fill in the blanks.