public static boolean match(String s,String... sa){
  for (  String st : sa) {
    if (st.equalsIgnoreCase(s))     return true;
  }
  return false;
}

public static boolean match ( String s , String ... sa ) { for ( String st : sa ) { if ( st . equalsIgnoreCase ( s ) ) return true ; } return false ; }
checks if any of the strings from the given array matches the given string
