Reminder written in Java