For this project we will be building a console-based to-do list app, to put together all of the concepts and ideas we have studied throughout the course.
ArrayList
or similar structure to store the to-do items, instead of an actual database. (This is the same format we used for the TimesheetApp checkpoint project.)ArrayList
“database”, modify your code to swap out the ArrayList
for a SQLite database. To-do items should be stored in a table in the database. When the user adds, completes, or deletes an item, the database should be updated accordingly.Demo video - Shows all the features of a completed version of the app. You can use this video as a guideline or implement your user interface differently, as long as all the requirements are met.
ToDoItem.java
class should have the following member variables:
Dao.java
class should have the following member variable:
ArrayList
to store the user’s to-do items.Connection
to the SQLite database file.In addition, Dao.java
should have the following methods:
- update method (mark a to-do item as complete)
- add method
- delete method
- list method
Create a Controller.java
class that handles user input and acts as the “glue” between the DAO class and the user.
Include comments in your code. At the minimum, include a comment for each method to explain what it does. If you submit code without any comments, 5 points will be subtracted from your assignment score.
ToDoItem
. When the user creates a new to-do item, prompt them to enter a due date (specify the date-time format you’d like them to use). Add the following options: