This is Duke, an application for busy people to keep track of what they need to do.
- Find the project in the
Project Explorer(usually located at the left side). - Go to the src folder and locate the
Duke.javafile (src --> main --> java --> Duke.java). - Right click on the file and select
Run Duke.main(). - The program now should run on the Console (usually located on the bottom. You can now interact with the program through the Console.
- Open your command prompt.
cdinto the directory that contains the JAR file.- Run the command
java -jar NAME_OF_JAR_FILE. For example, if the name of your JAR file is ip.jar, you could run the commandjava -jar ip.jar. - The program should now run in your command prompt.
There are three kinds of Tasks: Todos, Deadlines, and Events.
Adds a Todo to the list of tasks.
Format: todo DESCRIPTION
Words in UPPER_CASE are the parameters.
Examples:
- todo buy sunscreen
- todo buy bubble tea
Adds a Deadline to the list of tasks.
Format: deadline DESCRIPTION /by DEADLINE
Words in UPPER_CASE are the parameters.
Examples:
- deadline finish econometrics problem set /by Saturday
- deadine return book /by Sunday 12:30PM
Adds an Event to the list of tasks.
Format: event DESCRIPTION /at TIME
Words in UPPER_CASE are the parameters.
Examples:
- event project meeting /at Saturday 8:00PM
- event attend CS2113 lecture /at Friday 4:00PM
Displays all tasks that the user has added to their list.
Format: list
Output could look like the following:
1: [T][ ] buy sunscreen
2: [T][ ] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
4: [D][ ] return book (by: Sunday 12:30PM)
5: [E][ ] project meeting (at: Saturday 8:00PM)
6: [E][ ] attend CS2113 lecture (at: Friday 4:00PM)
T denotes a task of type Todo, D denotes a task of type Deadline, and E denotes a task of type Event.
You have the option of marking (i.e. checking off) a task that has been completed.
Format: mark TASK_NUMBER
TASK_NUMBER is the numerical label assigned to the task (that you can find from the output of the list command).
Example:
Assuming the following task list:
1: [T][ ] buy sunscreen
2: [T][ ] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
mark 2 would result in the following list:
1: [T][ ] buy sunscreen
2: [T][X] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
Alternatively, you may also unmark a task that has previously been marked.
Format: unmark TASK_NUMBER
Example:
Assuming the following task list:
1: [T][X] buy sunscreen
2: [T][ ] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
unmark 1 would result in the following list:
1: [T][ ] buy sunscreen
2: [T][ ] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
Users may also delete a task from the list of tasks.
Format delete TASK_NUMBER
Example:
Assuming the following task list:
1: [T][ ] buy sunscreen
2: [T][X] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
delete 2 would result in the following list:
1: [T][ ] buy sunscreen
2: [D][ ] finish econometrics problem set (by: Saturday)
Users can search for Tasks in their task list with a specific keywords.
Format find KEYWORD
Example:
Assuming the following task list:
1: [T][ ] buy sunscreen
2: [T][X] buy bubble tea
3: [D][ ] finish econometrics problem set (by: Saturday)
find buy would result in the following list:
1: [T][ ] buy sunscreen
2: [T][X] buy bubble tea
Duke automatically saves the list of tasks every time the user makes a modification to it, and loads this list of tasks when the application starts up. The user may access and change this list if they are running in the application in Intellij.
- In the
Project Explorer(usually located at the left side), go todata --> duke.txt. Open theduke.txtfile. - You may now edit the
duke.txtfile directly. Make sure to follow the given formatting!