Comparing Strings
public class Main { public static void main(String[] argv) throws Exception { String s1 = "a"; String s2 = "A"; String s3 = "B"; // Check if identical boolean b = s1.equals(s2); // false // Check if identical ignoring case b = s1.equalsIgnoreCase(s2); // true } }