Back
I have two string s, str1 and str2 How do I check if str2 is contained within str1, ignoring case
i think you should use
str1.toLowerCase().contains(str2.toLowerCase())
31k questions
32.8k answers
501 comments
693 users