2015-04-20 15:36:01 -07:00
|
|
|
//: operators/Equivalence.java
|
|
|
|
|
|
|
|
public class Equivalence {
|
|
|
|
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 == n2);
|
|
|
|
System.out.println(n1 != n2);
|
|
|
|
}
|
|
|
|
} /* Output:
|
|
|
|
false
|
|
|
|
true
|
|
|
|
*///:~
|