14 lines
273 B
Java
14 lines
273 B
Java
|
//: operators/Equivalence.java
|
||
|
|
||
|
public class Equivalence {
|
||
|
public static void main(String[] args) {
|
||
|
Integer n1 = new Integer(47);
|
||
|
Integer n2 = new Integer(47);
|
||
|
System.out.println(n1 == n2);
|
||
|
System.out.println(n1 != n2);
|
||
|
}
|
||
|
} /* Output:
|
||
|
false
|
||
|
true
|
||
|
*///:~
|