Question: To - Do List Application 1 . Add Task 2 . Update Task 3 . Delete Task 4 . List Tasks 5 . Exit Enter

To-Do List Application
1. Add Task
2. Update Task
3. Delete Task
4. List Tasks
5. Exit
Enter your choice: 1
Adding a new task:
Enter task description: Build Simple Java Project
Enter task category (PERSONAL, WORK, HOBBY, OTHER): WORK
Task added successfully.
To-Do List Application
1. Add Task
2. Update Task
3. Delete Task
4. List Tasks
5. Exit
Enter your choice: 2
Updating an existing task:
Enter task ID: 1
Enter new description: Build Simple Java Project
Enter new category (PERSONAL, WORK, HOBBY, OTHER): WORK
Is the task completed? (true/false): true
Task updated successfully.
To-Do List Application
1. Add Task
2. Update Task
3. Delete Task
4. List Tasks
5. Exit
Enter your choice: 4
Task{id=1, description='Build Simple Java Project', category=WORK, isCompleted=true}
To-Do List Application
1. Add Task
2. Update Task
3. Delete Task
4. List Tasks
5. Exit
Enter your choice: 3
Deleting an existing task:
Enter task ID: 1
Task deleted successfully.
To-Do List Application
1. Add Task
2. Update Task
3. Delete Task
4. List Tasks
5. Exit
Enter your choice: 5
Exiting...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!