添加主程序引用数据库

This commit is contained in:
GuanM 2024-10-23 15:10:46 +08:00
parent cee0e773c5
commit 5998a21023

View File

@ -10,10 +10,12 @@ import java.time.format.DateTimeFormatter;
class TodoListManager {
private final List<TodoItem> todoList;
private int nextId;
// private DatabaseManager dbManager; // 暂时注释掉
public TodoListManager() {
todoList = new ArrayList<>();
nextId = 1; // 起始编号
// dbManager = new DatabaseManager(); //
}
// 添加待办事项