public class MainClass { public static void main(String[] argv) { String s1 = "Compare me"; String s2 = "Compare me"; if (s1.equals(s2)) { System.out.println("=="); } } }
==