indentation
This commit is contained in:
parent
80c031d48b
commit
516d1522b9
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue