Here you can find the source of arrayContainsIgnoreCase(String[] array, String searchKey)
public static final boolean arrayContainsIgnoreCase(String[] array, String searchKey)
//package com.java2s; //License from project: Open Source License public class Main { public static final boolean arrayContainsIgnoreCase(String[] array, String searchKey) { if (array == null) return false; for (String item : array) { if ((item == null && searchKey == null) || (item != null && item.equalsIgnoreCase(searchKey))) return true; }//w w w .j a v a 2s . co m return false; } }