OnJava8-Examples/operators/Equivalence.java
2015-05-29 14:18:51 -07:00

15 lines
288 B
Java

//: operators/Equivalence.java
// ©2015 MindView LLC: see Copyright.txt
public class Equivalence {
public static void main(String[] args) {
Integer n1 = 47;
Integer n2 = 47;
System.out.println(n1 == n2);
System.out.println(n1 != n2);
}
} /* Output:
false
true
*///:~