End of the Chapter

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:

The matching braces are indicated in color, below:

End of the Chapter

Notice that in addition to pairs of braces that match, there are pairs of parentheses (), and pairs of brackets [] that match. Large programs will have many of these matching pairs, which are used to group sections of the program together.

class Haiku
{
  public static void main ( String[] args )
  {
    System.out.println( "On a withered branch" );
    System.out.println( "A crow has just alighted:" );
    System.out.println( "Nightfall in autumn." );
  }
}

Brace yourself! you have reached the end of the chapter. You may wish to review the following. Click on a subject that interests you to go to where it was discussed.

The next chapter will discuss a way to run the programs in these notes without actually typing them in.

You have reached the end of the chapter.

go to previous page   go to home page