Java tutorial
public class Main { public static void main(String args[]) { String s1 = "java2s.com"; String s2 = "Java2s.com"; System.out.println(s1.equalsIgnoreCase(s2)); } }