indentation

This commit is contained in:
Manu Sridharan 2013-04-29 20:33:18 -07:00
parent 80c031d48b
commit 516d1522b9
1 changed files with 15 additions and 15 deletions

View File

@ -9,20 +9,20 @@
* IBM Corporation - initial API and implementation
*****************************************************************************/
public class Scoping2 {
public static void main(String[] args) {
Scoping2 s2= new Scoping2();
{
final int x= 5;
System.out.println(x);
(new Object() {
public void foo() {
System.out.println("x = " + x);
}
}).foo();
}
{
double x= 3.14;
System.out.println(x);
}
public static void main(String[] args) {
Scoping2 s2 = new Scoping2();
{
final int x = 5;
System.out.println(x);
(new Object() {
public void foo() {
System.out.println("x = " + x);
}
}).foo();
}
{
double x = 3.14;
System.out.println(x);
}
}
}