src/edu/kit/informatik/calendar_sample/DateUtil.java
/**
     * Returns the date represented by the specified argument.
     *
     * <p>The specified argument has to match the format:
     * <blockquote><pre>
     * &lt;day&gt;-&lt;month&gt;-&lt;year&gt;</pre>
     * </blockquote>
     *
     * @param  charSequence the input argument
     * @return the date
     * @throws NullPointerException if {@code charSequence} is {@code null}
     */
Returns the date represented by the specified argument.
The specified argument has to match the format:

<day>-<month>-<year>


@param  charSequence the input argument
@return the date
@throws NullPointerException if  charSequence is  null
Returns the date represented by the specified argument . The specified argument has to match the format : <day > - <month > - <year > @param charSequence the input argument @return the date @throws NullPointerException if charSequence is null
public static Date parseDate(
            final CharSequence charSequence) {
        final Matcher m = PatternHolder.DATE_RE.matcher(charSequence);
        if (!m.matches())
            throw new IllegalArgumentException("Not a valid date");
        return date(m, 0);
    }
public static Date parseDate ( final CharSequence charSequence ) { final Matcher m = PatternHolder . DATE_RE . matcher ( charSequence ) ; if ( ! m . matches ( ) ) throw new IllegalArgumentException ( "Not a valid date" ) ; return date ( m , 0 ) ; }
Returns the date represented by the specified argument.
Returns the date represented by the specified argument .
////