This is a project template for a greenfield Java project. It's named after the Java mascot Duke. Given below are instructions on how to use it.
Prerequisites: JDK 11, update Intellij to the most recent version.
- Open Intellij (if you are not in the welcome screen, click
File>Close Projectto close the existing project first) - Open the project into Intellij as follows:
- Click
Open. - Select the project directory, and click
OK. - If there are any further prompts, accept the defaults.
- Click
- Configure the project to use JDK 11 (not other versions) as explained in here.
In the same dialog, set the Project language level field to theSDK defaultoption. - After that, locate the
src/main/java/DukeMain.Duke.javafile, right-click it, and chooseRun DukeMain.Duke.main()(if the code editor is showing compile errors, try restarting the IDE). If the setup is correct, you should see something like the below as the output:Hello from ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___|
How to use Duke and What features are available:
-
listcommand: --> renders a list of all the items in the Todo List>>list -------TODO-LIST------ ---------------------- 1. [T][ ] buy book 2. [T][ ] eat cookies 3. [T][ ] watch Tv ---------------------- -
markcommand: --> adds an "X" to indicate that a task is completed --> format: mark>>mark 1 Item has been marked 1. [T][X] buy book -
unmarkCommand: --> unmarks an item in the todolist by removing the "X" --> format: umark>>unmark 1 Item has been unmarked 1. [T][ ] buy book -
todocommand: --> adds a todo item --> format: todo <task_description>>>todo eat breakfast Got it, Ive done the Following! Added: [T][ ] eat breakfast now you have: 4 tasks in this list. -
deadlinecommand --> adds a Deadline item --> format: deadline <task_description> /by>>deadline return book /by 2019-12-01 Got it, ive done the Following Added: return book (by: 2019-12-01) now you have: 4 tasks in this list. -
eventcommand: --> adds an Event item --> format: event <task_description> /from <start_date> /to <end_date>>>event project meeting /from Mon 2pm /to 4pm Got it, ive done the Following Added: project meeting (from: Mon 2pm to: 4pm) now you have: 5 tasks in this list. -
deleteCommand: --> deletes item from the todo list --> format: delete>>delete 2 i have deleted the task: buy book -
findCommand --> searches for todo items that contain the search key term>>find buy -------TODO-LIST------ ---------------------- 1. [T][ ] buy jams 2. [T][ ] buy phone ---------------------- -
byeCommand: --> exits the program>>bye Bye! see you soon!