src/edu/kit/informatik/calendar_sample/DateUtil.java
/**
     * Appends the specified value to the specified string builder, padded with leading zeroes to at least {@code
     * digits} length.
     * 
     * <p>If {@code value} is negative, then an ASCII minus sign '-' ('\u002D') is appended in front of the padded
     * absolute value.
     * 
     * @param  sb the string builder to append to
     * @param  value the value to append
     * @param  digits the count of digits to append
     * @return a reference to {@code sb}
     */
Appends the specified value to the specified string builder, padded with leading zeroes to at least {@code
digits} length.

If  value is negative, then an ASCII minus sign '-' ('\u002D') is appended in front of the padded
absolute value.

@param  sb the string builder to append to
@param  value the value to append
@param  digits the count of digits to append
@return a reference to  sb
Appends the specified value to the specified string builder padded with leading zeroes to at least { @code digits } length . If value is negative then an ASCII minus sign ' - ' ( ' \ u002D ' ) is appended in front of the padded absolute value . @param sb the string builder to append to @param value the value to append @param digits the count of digits to append @return a reference to sb
public static StringBuilder append(
            final StringBuilder sb,
            final int value,
            final int digits) {
        final int start = value < 0 ? sb.length() + 1 : sb.length();
        final int count = sb.append(value).length() - start;
        if (count < digits)
            sb.insert(start, nTimes('0', digits - count));
        return sb;
    }
public static StringBuilder append ( final StringBuilder sb , final int value , final int digits ) { final int start = value < 0 ? sb . length ( ) + 1 : sb . length ( ) ; final int count = sb . append ( value ) . length ( ) - start ; if ( count < digits ) sb . insert ( start , nTimes ( '0' , digits - count ) ) ; return sb ; }
Appends the specified value to the specified string builder, padded with leading zeroes to at least {@code
 digits} length.
Appends the specified value to the specified string builder padded with leading zeroes to at least { @code digits } length .
////