throw new IllegalArgumentException ();
throw new IllegalArgumentException("Not enough format objects");
  public void setFormats (Format[] newFormats)  {    if (newFormats.length < elements.length)      throw new IllegalArgumentException ();    int len = Math.min(newFormats.length, elements.length);    for (int i = 0; i < len; ++i)      elements[i].setFormat = newFormats[i];  }