I am currently using the contains method belonging to the ArrayList class for making a search. Is there a way to make this search case insensitive in java? I found that in C
For java8
list.stream().anyMatch(s -> s.equalsIgnoreCase(yourString))
For < java8