// A Beginning Programmer's Guide to Java

// Semicolon demonstration 2
// by Mark Graybill, June 2008
// Used in http://beginwithjava.blogspot.com/2008/06/those-pesky-semicolons.html

// Uses a slightly more complex program to demonstrate
// semicolon placement with respect to statements and
// code blocks.

// This version compiles correctly, as the semicolon is placed at
// the end of the System.out.println() statement.
// Try moving the semicolon outside the closing curly brace on
// the same line to see what happens.

public class Semicolon2{
 public static void main(String arg[]){
     if (true) {System.out.println("argl bargl"); }
 }
}