A simple and lightweight command-line To-Do List application written in Java. It allows you to add, view, complete and delete tasks - all from your terminal. Perfect for learning Java basics suhc as classes, loops, input handling and ArrayLists.
- Add new tasks
- View all tasks
- Mark tasks as completed
- Delete tasks
- Runs entirely in your terminal - no external dependencies
cmdToDoList/
├── README.md
└── src/
└── main/
└── java/
├── Main.java
└── Task.javaOpen your terminal (Command Prompt, PowerShell, Git bash etc.) and run:
git clone https://github.com/noahwie/cmd-ToDo-List.gitThen navigate to the into the project folder:
cd cmd-ToDo-List/src/main/javaMake sure you have the Java JDK installed and added to your system's PATH. You can check by running
java -version
javac -versionIf both coommands show version numbers, youre good to go!
Now compile the project:
javac Main.java Task.javathis will create .class files for each Java source file.
Once compiled, start the app with:
java MainWhen the app runs, youll see a simple menu like this:
=== TO-DO LIST ===
1. Add a new task
2. View Tasks
3. Mark task as completed
4. Delete a task
5. Exit- Add a new task to the List (youll be prompted to enter a description)
- View all the tasks in the list
- Mark a specific task as completed from the list
- Delete a task from the list
- Exit the program
Completed tasks are shown as [X] Task description Incomplete tasks are shown as [ ] Task description
=== TO-DO LIST ===
1. Add a new task
2. View Tasks
3. Mark task as completed
4. Delete a task
5. Exit
> 1
Please enter the description of the task you would like to add
Buy groceries
Task added successfully
> 2
1. [ ] Buy groceries
> 3
Please enter the number of the task you would like to mark as completed
1
Task 1 marked successfully
> 2
1. [x] Buy groceries- Java JDK 8 or higher
- Command-line terminal
- Developed by Noah Wieschmann
- GitHub: noahwie
- LinkedIn: Noah Wieschmann