Rectangle rec1, rec2; rec1 = new Rectangle(10, 5); rec2 = new Rectangle(10, 5); if (rec1 == rec2) prn("Yay!"); else prn("Boo!");
Rectangle rec1, rec2; rec1 = new Rectangle(10, 5); rec2 = new Rectangle(10, 5); if (rec1.equals(rec2)) prn("Yay!"); else prn("Boo!");
int a, b; a = 10; b = 10; if (a == b) prn("Yay!"); else prn("Boo!");
int a, b; if (z.equals(y)) prn("Yay!"); else prn("Boo!");