code: public void setVolumeLabel(String label) throws IllegalArgumentException {
          if (label.length() > MAX_VOLUME_LABEL_LENGTH)
              throw new IllegalArgumentException("volume label too long");
  
          for (int i = 0; i < MAX_VOLUME_LABEL_LENGTH; i++) {
              set8(VOLUME_LABEL_OFFSET + i,
                      i < label.length() ? label.charAt(i) : 0);
          }
      }
docs: Sets the volume label that is stored in this boot sector.
  
  @param label the new volume label
  @throws IllegalArgumentException if the specified label is longer
  than {@link #MAX_VOLUME_LABEL_LENGTH}