package operators; /** * * @author Lefteris Moussiades */ public class Relational { static void objectEquality() { String h = new String("hello"), h1 = new String("hello"); System.out.println(h + " == " + h1 + " is " + h == h1); System.out.println(h + " == " + h1 + " is " + (h == h1)); System.out.println(h + " equals to " + h1 + " is " + (h.equals(h1))); } static void nativeOps() { int i = 1, j = 1; System.out.println("i= " + i + " j " + j); System.out.println("i==j is " + (i == j)); System.out.println("i!=j is " + (i != j)); System.out.println("i>j is " + (i > j)); System.out.println("i>=j is " + (i >= j)); System.out.println("i