/**
* Created by jay on 16-11-24.
*/
public class TestInteger
{
public static void main(String []args)
{
Integer a= 127;
Integer b= 127;
System. out.println(a==b);
Integer c= 128;
Integer d= 128;
System. out.println(c==d);
}
* Created by jay on 16-11-24.
*/
public class TestInteger
{
public static void main(String []args)
{
Integer a= 127;
Integer b= 127;
System. out.println(a==b);
Integer c= 128;
Integer d= 128;
System. out.println(c==d);
}
}
输出:
true
false