The contains method is based on what the equals method of the objects stored in your ArrayList returns. So yes it is possible if you use objects where equals uses a case insensitive comparison .
Read moreIs there a Contains ignore case?
The StringUtils class contains a containsIgnoreCase() method that checks if a string is a substring of another in a case-insensitive manner.
Read moreHow do you ignore cases in string?
equalsIgnoreCase() method compares this String to another String, ignoring case considerations. Two strings are considered equal ignoring case if they are of the same length and corresponding characters in the two strings are equal ignoring case.
Read moreDoes string contain ignore case Java?
Yes, contains is case sensitive . You can use java.
Read moreHow do you check if a String contains a substring ignore case?
The contains() method of the String class accepts Sting value as a parameter, verifies whether the current String object contains the specified String and returns true if it does (else false) .11 Eki 2019
Read moreIs String contains method case sensitive in Java?
Note that string contains() method is case sensitive , so “abc”. contains(“A”); will return false . The argument of String contains() method is java. lang.
Read moreHow do you make a word case-insensitive in Java?
Java String equalsIgnoreCase() Method The equalsIgnoreCase() method compares two strings, ignoring lower case and upper case differences. This method returns true if the strings are equal, and false if not. Tip: Use the compareToIgnoreCase() method to compare two strings lexicographically, ignoring case differences.
Read more