class Demo
{
public static void main(String[] args)
{
int x=1,y=1;
if(x++==2 && ++y==2)
{
x=7;
}
System.out.println("x="+x+" , y="+y); //class shuchu
{
public static void main(String[] args)
{
int x=1,y=1;
if(x++==2 && ++y==2)
{
x=7;
}
System.out.println("x="+x+" , y="+y); //class shuchu
{
public static void main(String[] args)
{
int x=1,y=1;
if(x++==2 && ++y==2)
{
x=7;
}
System.out.println("x="+x+" , y="+y); //x=2,y=1
}
}
}
}
}
}
|