I\'ve got two classes right now: RemindersDAO.java and ViewLocalReminders.java.
I\'m trying to get access to a variable that\'s in ViewLocalReminders.java and I\'m tryin
Your setter should look like this:
public void setReminderID(long id) {
reminderID = id;
System.out.println("Reminder ID Value in Setter: " + reminderID);
}
Your remainderID
variable should be on the left. The way you had it written, id was being set to reminderID.
Also, in your getter:
public long getReminderID() {
return reminderID;
System.out.println("Reminder ID Value in Getter: " + reminderID);
}
Since the System.out.println
is after the return, then you shouldn't ever see the output. Return will end the function right there.