OnJava8-Examples/operators/EqualsMethod.java
2015-04-20 15:36:01 -07:00

12 lines
240 B
Java

//: operators/EqualsMethod.java
public class EqualsMethod {
public static void main(String[] args) {
Integer n1 = new Integer(47);
Integer n2 = new Integer(47);
System.out.println(n1.equals(n2));
}
} /* Output:
true
*///:~