- main Function: The main function runs a loop displaying the menu and handling user input.
- viewTodoList Function: Displays the current to-do list. If the list is empty, it notifies the user.
- addItem Function: Prompts the user to enter an item to add to the list.
- removeItem Function: Prompts the user to enter the number of the item to remove from the list.
Ensure you have Kotlin set up in your development environment.
You can use an IDE like IntelliJ IDEA or set up Kotlin running:
brew install kotlin
run the Main.kt
file and enjoy the app!