OnJava8-Examples/operators/Equivalence.java
2015-09-07 11:44:36 -06:00

16 lines
283 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:
true
false
*/