Here you can find the source of containsCaseInsensitive(String s, Set
public static boolean containsCaseInsensitive(String s, Set<String> l)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean containsCaseInsensitive(String s, Set<String> l) { for (String string : l) { if (string.equalsIgnoreCase(s)) { return true; }//from ww w.jav a2 s . c om } return false; } }