@@ -0,0 +1,1186 @@
+package com.samovich.cop2800.chapter4;%0A%0A/**%0A * Filename DemoBlock.java%0A * Created by Valery Samovich%0A * Written on 5/24/2016%0A */%0Apublic class DemoBlock %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(%22Demonstrating block scope%22);%0A%0A        // first block information%0A        int x = 1111;%0A        System.out.println(%22In first block x is %22 + x);%0A%0A        %7B%0A            // second block information%0A            int y = 2222;%0A            System.out.println(%22In second block x is %22 + x);%0A            System.out.println(%22In second block x is %22 + y);%0A        %7D%0A%0A        %7B%0A            // third block information%0A            int y = 3333;%0A            System.out.println(%22In third block x is %22 + x);%0A            System.out.println(%22In third block x is %22 + y);%0A            demoMethod();%0A            System.out.println(%22After method x is %22 + x);%0A            System.out.println(%22After method block y is %22 + y);%0A        %7D%0A%0A        System.out.println(%22At the end x is %22 + x);%0A    %7D%0A%0A    public static void demoMethod()%7B%0A        int x = 8888, y = 9999;%0A        System.out.println(%22In demoMethod x is %22 + x);%0A        System.out.println(%22In demoMethod block y is%22 + y);%0A    %7D%0A%7D%0A

Add example for block