You can’t make . indexOf() case insensitive. You can normalize the case between the Array and the search term. You seem to be doing a search and then converting the case, so that isn’t going to help you.
Read moreIs indexOf case sensitive Java?
The indexOf() method returns the index number where the target string is first found or -1 if the target is not found. Like equals(), the indexOf() method is case-sensitive , so uppercase and lowercase chars are considered to be different.
Read moreIs set contains case-insensitive java?
No, there isn’t . But if you explain what you’re trying to do, we can probably suggest an alternative approach that would do what you need. To perform case-insensitive matching in Java, you can use String.
Read moreHow do you negate a stream filter in java?
How to negate a method reference predicate
Read moreIs contain operator case sensitive?
Contains() method in C# is case sensitive . And there is not StringComparison parameter available similar to Equals() method, which helps to compare case insensitive.
Read moreIs set case sensitive?
This applies to Sets: If the set contains String elements, the elements are case-sensitive . Two set elements that differ only by case are considered distinct.20 Şub 2019
Read moreHow do you make a regular expression case insensitive?
If you want only part of the regex to be case insensitive (as my original answer presumed), then you have two options:
Read more