I need to increment date by some days.
private Date now = new Date();
private Date result;
public void incrementDate(Integer days) {
result =
}
So if days equals 3 i need to increment my now date
on 3 days and set it to result
.
I know that java 8 has plusDays
method in LocalDate
class. Is there a way how to implement this in java 7.