OnJava8-Examples/operators/Equivalence.java
2015-11-14 16:18:05 -08:00

16 lines
283 B
Java

// operators/Equivalence.java
// ©2016 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:
true
false
*/