feature/tasks/nested-classes #17

Merged
KamaSK merged 11 commits from feature/tasks/nested-classes into main 2025-05-19 21:10:52 +03:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit 780f1b1fed - Show all commits

View File

@ -70,4 +70,11 @@ class Task {
boolean getCompleted() {
return completed;
}
static class TaskPrinter {
void print(Task task) {
task.printInfo(true);
}
}
}

View File

@ -14,6 +14,10 @@ public class TodoApp {
TodoApp app = new TodoApp();
taskManager = app.new TaskManager();
// Task t1 = new Task("fasfas", "asfsadfsaafsadfsa");
// Task.TaskPrinter printer = new Task.TaskPrinter();
// printer.print(t1);
app.run();
}