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
Its a best way to convert your list item into lowercase. After convert you will use contain method. like
List name_list = new ArrayList<>(); name_list.add("A"); name_list.add("B");
Create lowercase list using above created name_list
name_list
List name_lowercase_list = new ArrayList<>(); for(int i =0 ; i