public static boolean containsIgnoreCase(String[] array,String value){
  for (  String str : array) {
    if (value == null && str == null)     return true;
    if (value != null && value.equalsIgnoreCase(str))     return true;
  }
  return false;
}

public static boolean containsIgnoreCase ( String [ ] array , String value ) { for ( String str : array ) { if ( value == null && str == null ) return true ; if ( value != null && value . equalsIgnoreCase ( str ) ) return true ; } return false ; }
check if the given array contains the given value ( with case - insensitive comparison ) .
