Payment dates generator - Java assignment