src/edu/kit/informatik/calendar/Date.java
/**
     * Adds a given amount of days to the instance
     * Calendar rules are respected
     * @param days The amount of days to add
     * @return A new {@link Date} instance with the corresponding values
     */
Adds a given amount of days to the instance
Calendar rules are respected
@param days The amount of days to add
@return A new  Date instance with the corresponding values
Adds a given amount of days to the instance Calendar rules are respected @param days The amount of days to add @return A new Date instance with the corresponding values
public Date plusDays(int days) {
        int totalDays = days + this.day;
        int daysInCurrentMonth = getDaysInMonth();
        if (totalDays > daysInCurrentMonth) {
            totalDays -= daysInCurrentMonth + 1;
            return new Date(year, month, 1).plusMonths(1).plusDays(totalDays);
        } else {
            return new Date(year, month, totalDays);
        }
    }
public Date plusDays ( int days ) { int totalDays = days + this . day ; int daysInCurrentMonth = getDaysInMonth ( ) ; if ( totalDays > daysInCurrentMonth ) { totalDays -= daysInCurrentMonth + 1 ; return new Date ( year , month , 1 ) . plusMonths ( 1 ) . plusDays ( totalDays ) ; } else { return new Date ( year , month , totalDays ) ; } }
Adds a given amount of days to the instance
 Calendar rules are respected
 @param days The amount of days to add
 @return A new {@link Date} instance with the corresponding values
Adds a given amount of days to the instance Calendar rules are respected @param days The amount of days to add @return A new { @link Date } instance with the corresponding values
//true:the addition of days is bigger than the days in the current month //false: the addition of days doesn't surpasses the the days of the current month