2015-09-07 11:44:36 -06:00
|
|
|
// operators/EqualsMethod.java
|
2015-06-15 17:47:35 -07:00
|
|
|
|
|
|
|
public class EqualsMethod {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
Integer n1 = 47;
|
|
|
|
Integer n2 = 47;
|
|
|
|
System.out.println(n1.equals(n2));
|
|
|
|
}
|
2015-09-07 11:44:36 -06:00
|
|
|
}
|
|
|
|
/* Output:
|
2015-06-15 17:47:35 -07:00
|
|
|
true
|
2015-09-07 11:44:36 -06:00
|
|
|
*/
|