2015-04-20 15:36:01 -07:00
|
|
|
//: operators/EqualsMethod.java
|
|
|
|
|
|
|
|
public class EqualsMethod {
|
|
|
|
public static void main(String[] args) {
|
2015-05-05 14:05:39 -07:00
|
|
|
Integer n1 = 47;
|
|
|
|
Integer n2 = 47;
|
2015-04-20 15:36:01 -07:00
|
|
|
System.out.println(n1.equals(n2));
|
|
|
|
}
|
|
|
|
} /* Output:
|
|
|
|
true
|
|
|
|
*///:~
|