indentation
This commit is contained in:
parent
80c031d48b
commit
516d1522b9
|
@ -9,20 +9,20 @@
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
public class Scoping2 {
|
public class Scoping2 {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Scoping2 s2= new Scoping2();
|
Scoping2 s2 = new Scoping2();
|
||||||
{
|
{
|
||||||
final int x= 5;
|
final int x = 5;
|
||||||
System.out.println(x);
|
System.out.println(x);
|
||||||
(new Object() {
|
(new Object() {
|
||||||
public void foo() {
|
public void foo() {
|
||||||
System.out.println("x = " + x);
|
System.out.println("x = " + x);
|
||||||
}
|
}
|
||||||
}).foo();
|
}).foo();
|
||||||
}
|
|
||||||
{
|
|
||||||
double x= 3.14;
|
|
||||||
System.out.println(x);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
double x = 3.14;
|
||||||
|
System.out.println(x);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue