Check two nullable string for equal, Ignore Case - Android java.lang

Android examples for java.lang:String Equals

Description

Check two nullable string for equal, Ignore Case

Demo Code


public class Main{


    public static boolean equalsIgnoreCase(String str1, String str2) {
        return str1 != null && str1.equalsIgnoreCase(str2);
    }/*  w ww.j  a v a  2s  . co  m*/

}

Related Tutorials