Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java, write a program that manages reminders on any day (time is not specified). All instance variables (in other words, fields) should be private

image text in transcribed

In Java, write a program that manages reminders on any day (time is not specified). All instance variables (in other words, "fields") should be private or protected. A Reminder is a class that includes: a String to remind you of something (ex. "Walk the dog") a RemType of the reminder - RemType. ONCE, RemType.DAILY a LocalDate for when the reminder is due a constructor to initialize these 3 fields one "getter" function for each of the 3 fields one function to add one day to the date of the reminder (LocalDate.pluseDays(1) returns the next date) an implementation of toString() The program calls a function readReminders () that takes a List of Reminder objects and fills it from the standard input. Assume this function is already written in the same class. Do not worry about any exceptions that may he thrown. Displays all reminders for the day (LocalDate.now() returns the current date). Asks user to enter index for reminders that have been handled already. If the reminder has the ONCE type, remove it from the list If the reminder has the DAILY type, add one day to the date and leave it on the list Calls a function writeReminders () that takes a List of Reminder objects and save it to a file. Assume this function is already written in the same class. Do not worry about any exceptions that may he thrown. public enum RemType {ONCE, DAILY}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions