boolean verifyStringGroup(String value,String[] allowed){
  for (int i=0; i < allowed.length; i++) {
    if (value.equalsIgnoreCase(allowed[i])) {
      return true;
    }
  }
  return false;
}

boolean verifyStringGroup ( String value , String [ ] allowed ) { for ( int i = 0 ; i < allowed . length ; i ++ ) { if ( value . equalsIgnoreCase ( allowed [ i ] ) ) { return true ; } } return false ; }
verifies that the specified string equals to one of the allowed strings
