@@ -0,0 +1,497 @@
+/*%0A  This program attempts to declare a variable in an inner scope with the same name as one defined in an outer scope.%0A  %0A  *** This program will not compile. ***%0A*/%0Aclass NestVar %7B%0A  public static void main(String args%5B%5D) %7B%0A    int count;%0A    %0A    for(count = 0; count %3C 10; count = count+1) %7B%0A      System.out.println(%22This is count: %22 + count);%0A      %0A      int count; // illegal!!!%0A      for(count = 0; count %3C 2; count++)%0A        System.out.println(%22This program is in error!%22);%0A    %7D%0A  %7D%0A%7D%0A

declare same name in inner scope to the outer scope