This is a Java project Duke for CS2113T. It's named after the Java mascot Duke. Given below are instructions on how to use it.
This is a Java project Duke for CS2113T. It's named after the Java mascot Duke. Duke is an task manager which allows the user to add, delete, modify and check the tasks.
This document shows you six basic features in Duke, the <list>, <todo>, <event>, <deadline>, <delete>, <find>, <bye> and <done> commands.
Note the following symbols and formatting used in this document:
| format and symbols | meanings |
|---|---|
<list> |
A grey highlight (called a mark-up) indicates that this is a command that can be typed into the command line and executed by the application |
| Welcome to Duke | A box of content splited by two lines indicates that this is a output that computed by Duke after interpreting the command line. |
This command displays all the items stored in the task list, as well as each task's complete status, type (i.e. todo, event, deadline) and date/deadline if it's type of 'event' or 'deadline'.
Example:
list
- [T][✓] borrow book
- [T][✓] read book
- [D][✓] return book (by: June 6th)
- [E][✓] project meeting (at: Aug 6th 2-4pm)
- [T][✘] join sports club
This command allows the user delete items from task list by index. The index is corresponding to the index displayed by list command.
Example:
delete 2
Noted. I've removed this task: [T][✓] read book Now you have 4 tasks in the list.
This command allows the user to add new tasks. The user can create 3 different type of tasks: Todo, Deadline and Event.
todo task requires a task description.
Example:
todo read book
Got it. I've added this task: [T][✘] read book Now you have 5 tasks in the list.
event task requires a task description and a date of the event.
Example:
event visit parents /at Sunday afternoon
Got it. I've added this task: [E][✘] visit parents(at: Sunday afternoon) Now you have 6 tasks in the list.
deadline task requires a task description and a deadline date or time.
Example:
deadline ip publish /by Friday 11:59 p.m.
Got it. I've added this task: [D][✘] ip publish(by: Friday 11:59 p.m.) Now you have 7 tasks in the list.
This command mark task as done by index in the task list. Users requires to enter an index between 1 to maximum amount of items in the list. If there is no element in the list, a error message will be displayed.
Example:
list
- [T][✓] read book
- [E][✘] project meeting(at: Aug 6th 2-4pm)
- [T][✓] join sports club
- [T][✓] finish landry
- [T][✘] finish ip
- [E][✓] date(at: friday)
- [T][✘] work
done 2
Nice! I've marked this task as done: [E][✓] project meeting(at: Aug 6th 2-4pm)
This command allows the user to find task that contains the key word in its description. The key word is used as filter word for searching.
Example:
find finish sports
Here are the matching tasks in your list:
- [T][✓] join sports club
- [T][✓] finish landry
- [T][✘] finish ip
This command exist the user from program and update the user list in the file.
Example:
bye
Your file has been saved in data/duke.txt
Bye. Hope to see you again soon!
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 dialog first) - Set up the correct JDK version, as follows:
- Click
Configure>Structure for New Projectsand thenProject Settings>Project>Project SDK - If JDK 11 is listed in the drop down, select it. If it is not, click
New...and select the directory where you installed JDK 11 - Click
OK
- Click
- Import the project into Intellij as follows:
- Click
Open or Import. - Select the project directory, and click
OK - If there are any further prompts, accept the defaults.
- Click
- After the importing is complete, locate the
src/main/java/Duke.javafile, right-click it, and chooseRun Duke.main(). If the setup is correct, you should see something like the below:Hello from ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___|