本帖最后由 赵宇 于 2012-9-25 08:35 编辑
红色部分不一样
public class Test
{
public static void main(String[] args)
{
Integer i1 = 100;
Integer i2 = 100;
if(i1 == i2)
{
System.out.println("i1 == i2");
}
else
{
System.out.println("i1 != i2");
}
}
}
public class Test
{
public static void main(String[] args)
{
Integer i1 = 200;
Integer i2 = 200;
if(i1 == i2)
{
System.out.println("i1 == i2");
}
else
{
System.out.println("i1 != i2");
}
}
} |
|