public static String generateDefaultVolumeLabel(String baseVolumeLabel,int volumeIndex,int volumeCount){
  StringBuilder volumeLabelBuilder=new StringBuilder(baseVolumeLabel);
  if (volumeCount > 1) {
    volumeLabelBuilder.append("-");
    volumeLabelBuilder.append(volumeIndex + 1);
  }
  return volumeLabelBuilder.toString();
}

public static String generateDefaultVolumeLabel ( String baseVolumeLabel , int volumeIndex , int volumeCount ) { StringBuilder volumeLabelBuilder = new StringBuilder ( baseVolumeLabel ) ; if ( volumeCount > 1 ) { volumeLabelBuilder . append ( "-" ) ; volumeLabelBuilder . append ( volumeIndex + 1 ) ; } return volumeLabelBuilder . toString ( ) ; }
generate a unique volume label based on the given base name and index .
