In Java, how do I check if a string contains a substring (ignoring case)? [duplicate]

I have two Strings, str1 and str2. How do I check if str2 is contained within str1, ignoring case?

6 s
6

Leave a Comment