Android examples for java.lang:String Contains
String contains Ignore Case
import java.util.List; import java.util.Map; public class Main{ public static boolean containsIgnoreCase(String str, String cs) { return str != null && cs != null && str.length() >= cs.length() && str.toLowerCase().contains(cs.toLowerCase()); }//from w w w . j ava 2 s .c o m }