public static < T > boolean contains ( T needle , T ... hayStack ) { if ( needle == null ) return containsNull ( hayStack ) ; if ( hayStack == null ) return false ; for ( T hay : hayStack ) if ( needle . equals ( hay ) ) return true ; return false ; }
Does an array contain a value .