containsIgnoreCase is a static method of the StringUtils class that checks whether a given string contains the complete search string as a whole, while ignoring the case considerations . The comparison is case-insensitive in nature.
Read moreIs there contains ignore case in Java?
Yes, contains is case sensitive . You can use java. util.
Read moreHow do you ignore case in Java?
use toUpperCase() or toLowerCase() method of String class . Show activity on this post. You ignore case when you treat the data, not when you retrieve/store it. If you want to store everything in lowercase use String#toLowerCase, in uppercase use String#toUpperCase.
Read more