code: public static boolean contains(String[] vals, String value) {
          for (int i = 0; i < vals.length; i++) {
              if (vals[i].equals(value)) {
                  return true;
              }
          }
          return false;
      }
docs: Checking if string array contains value
  
  @param vals  values
  @param value value
  @return is array contains string