public class Else
{
public static void main(String args[])
{
int x=3;
if(x==2)
{
System.out.println("X等于2");
System.out.println("X并不等于3");
}
if(x==3)
{
System.out.println("X等于3");
}
else if(x==2)
{
System.out.println("X不等于3,但是等于2");
}
else
{
System.out.println("X不等于3");
}
}
}