class Box2 {
public static void main(
String[] args) {
Integer i = 500;
Int j = 500;
if(i == j) System.out.print("a");
if(i.equals(j)) System.out.print("b");
new Box2().go(j, i);
}
void go(Integer x, Integer y) {
if(x == y) System.out.print("c");
if(x.equals(y)) System.out.print("d");
}
}
I Think Your Declaration of j is illegal,since the i in 'Int' is capital,it has to be either int or Integer