code: public void add(String string) {
      elements.add(string == null ? JsonNull.INSTANCE : new JsonPrimitive(string));
    }
docs: Adds the specified string to self.
  
  @param string the string that needs to be added to the array.