S
snehapshinde
We can create reminders by creating Timer object and calling its
schedule() method.
The user can set many reminders. If the user choose to remove any
reminder then, there is a method called cancel() of Timer class. But
this method should be called by the corresponding object . How can I
reference the corresponding object. Should I store the created objects
& then retrieve it whenever I want to call cancel() method. But in my
program I am using same object name for creating all reminders, then
how can I differentiate the objects?
Plz help me regarding this!
schedule() method.
The user can set many reminders. If the user choose to remove any
reminder then, there is a method called cancel() of Timer class. But
this method should be called by the corresponding object . How can I
reference the corresponding object. Should I store the created objects
& then retrieve it whenever I want to call cancel() method. But in my
program I am using same object name for creating all reminders, then
how can I differentiate the objects?
Plz help me regarding this!