class Number { int i;}public class EqualsMethod { public static void main(String[] args) { Number n1 = new Number (); n1.i=47; Number n2 = new Number (); n2.i=47; System.out.println( n1 ==n2 ); System.out.println(n1.equals(n2)); }}