fixes compile errors and semantic errors in the example program of 2.1.4 section of the user guide
fixes compile errors and semantic errors in the example program of 2.1.4 section of the user guide

msgilligan/jsr354-ri,msgilligan/jsr354-ri