private boolean isNotInArray(String str,String[] array){
  for (int i=0; i < array.length; i++) {
    if (str.equals(array[i])) {
      return false;
    }
  }
  return true;
}

private boolean isNotInArray ( String str , String [ ] array ) { for ( int i = 0 ; i < array . length ; i ++ ) { if ( str . equals ( array [ i ] ) ) { return false ; } } return true ; }
returns true iff str is not an element of array .
