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.
File
> Close Project
to close the existing project dialog first)Configure
> Structure for New Projects
and then Project Settings
> Project
> Project SDK
New...
and select the directory where you installed JDK 11OK
Open or Import
.OK
src/main/java/duke.Launcher.java
file, right-click it, and choose Run Launcher.main()
. If the setup is correct, you should see something like the below:
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
Hello! I'm Duke
What can I do for you?
1. list
2. done...{item number}
3. todo...{description}
4. deadline...{description}.../by...{dd/mm/yyyy}...{hhmm}
e.g. deadline return book /by 1/12/2020 1800
5. event...{description}.../at...{dd/mm/yyyy}...{hhmm}-{hhmm}
e.g. event meeting /at 1/12/2020 1800-1900
6. delete...{item number}
7. find...{item to find}
8. update...{item number}.../{desc OR date}...{value}
9. bye
In order for easy of use, the menu displayed to users was design to be simple.
Notes to reading menu:
- Replace
{replace_me}
with relevant data. The data required is defined in curly braces.
1.1OR
inside the curly braces means either of the elements not both. e.g. For command 8.$ update 2 /desc New description
...
displayed on the menu means it requires a space. 3 dots equals 1 space.
To exit programme just click the cross on the top right of the dialog box.
list
Shows a list of task (Deadline, Event, ToDo) that is recorded in Duke.
Format: list
done
Change the status of not completed for a particular task to complete.
Format: done...{item_number}
Example: done 2
todo
Create a todo task with a description.
Format: todo...{description}
Example: `todo iP Meeting
deadline
Create a deadline task with a description, deadline date and time.
Format: deadline...{description}...\by...{dd/mm/yyyy}...{hhmm}
dd/mm/yyyy
or dd-mm-yyyy
.Example:
deadline iP meeting /by 14-9-2020 1130
deadline iP meeting /by 14/9/2020 1130
deadline iP meeting /by 14/09/2020 230
event
Create an event task with a description, start and end date and time.
Format: event...{description}...\at...{dd/mm/yyyy}...{hhmm}-{hhmm}
dd/mm/yyyy
or dd-mm-yyyy
.Example:
event iP meeting /at 14-9-2020 1130-1800
event iP meeting /at 14/9/2020 1130-1800
event iP meeting /at 14/09/2020 230-1800
delete
Remove a task from Duke task list.
Format: delete...{item_number}
Example: delete 2
find
Find item based on the description.
Format: find...{find_value}
find book
All description with book will appear.find wa
E.g. thing that contain “wa” will appear like “water”.update
Update task description or date (if applicable).
Format: update...{item_number}.../{desc OR date}...{value}
/{desc OR date}
will determine if the update will be for the task description, or the date.{value}
format will depend on the type of update.
{value}
can be any text.Example:
update 1 /desc iP Meeting Update
update 2 /date 14-9-2020 1130-1800
update 3 /date 14/9/2020 1130
To exit application click the cross at the top right-hand corner of the dialog box.
Duke application saved the changes automatically after each action. There is no need to save manually.