Here you can find the source of containsIgnoreCase(List
public static boolean containsIgnoreCase(List<String> list, String soughtFor)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static boolean containsIgnoreCase(List<String> list, String soughtFor) { for (String current : list) { if (current.equalsIgnoreCase(soughtFor)) { return true; }/*from w ww . j a v a 2 s .c om*/ } return false; } }