question: 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 ; }
target:  Check if the given array contains the given value (with case-insensitive comparison).