// Name: // Exploration homework 6 public class Homework6 { public static void main(String[] args) { int x = 0; /* // compiles - the if test is followed by a Block, which can be // generated by Statement if ( x == 0 ) { int y = 0; } // doesn't compile - int y = 0 is a LocalVariableDeclarationStatement // which isn't a Block or a Statement (even with that name!) or // anything else that Statement generates if ( x == 0 ) int y = 0; if ( x == 0 ) { { int y = 0; } } if ( x == 0 ) ; for (x = 0; x < 10; x++); for (;;;); for (;;); for (x++;x = 1; x= 0); for (x++;; x = 0); */ } }