import java.io.*;
import java.util.*;

public class ImmutableEqual
{
    public static void main(String[] args) {
	Integer a = 4;
	Integer b = 4;
	System.out.println(a + " == " + b + " is " + (a==b));
	Scanner sc = new Scanner(System.in);
	System.out.print("Enter two equal integers: ");
	Integer x = new Integer(sc.nextInt());
	Integer y = new Integer(sc.nextInt());
	System.out.println(x + " == " + y + " is " + (x==y));
    }
}
/* Even though Integer values are immutable and not cloneable, two 
Integer values with the same value may not be identical.
The output is
4 == 4 is true
Enter two equal integers: 4 4
4 == 4 is false
*/
