public static boolean isNA(String[] NAstrings,String w){
  if (NAstrings == null)   return false;
  for (  String na : NAstrings) {
    if (w.equals(na))     return true;
  }
  return false;
}

public static boolean isNA ( String [ ] NAstrings , String w ) { if ( NAstrings == null ) return false ; for ( String na : NAstrings ) { if ( w . equals ( na ) ) return true ; } return false ; }
function that checks if the given string is one of na strings .
