import java.io.Console; public class Test { public static void main(String[] args){ Object o1 = new Object(); Object o2 = new Object(); System.out.println(o1.equals(o2)); int i = 1; int j = 2; System.out.println(i == j); String s1 = "Hello"; String s2 = "Hello2"; System.out.println(s1 == s2); System.out.println(s1.equals(s2)); s2 = "Hello"; System.out.println(s1 == s2); System.out.println(s1.equals(s2)); System.out.print("Please enter a string: "); Console cons = System.console(); String s3 = cons.readLine(); System.out.println(s1 == s3); System.out.println(s1.equals(s3)); } }