I'm having issues using a for loop to increment a SimpleDate with the current date to a date in the future using just days.
I first get my DAYS in a double eventDay
variable, which is returned from public double getEventDays()
. I'm trying to GRAB this variable, and use it in another public data access-er called public SimpleDate getEventDate()
First off I have no idea how to grab a variable from another data access-er, or if it's even possible. But even after that I need to initialize a for loop that will essentially be something like;
for (int 1 = 0, i < (int)eventDay, i+=1)
{
eventDay.nextDay(); // need to use the .nextDay() to add a day N amount of times
return eventDay;
}
return null;
I know this is completely wrong, but it's what I'm basically looking for, I just have no idea how to start it off.