Say I have two strings,
String s1 = \"AbBaCca\"; String s2 = \"bac\";
I want to perform a check returning that s2 is contained
s2
You can use regular expressions, and it works:
boolean found = s1.matches("(?i).*" + s2+ ".*");