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