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 Project
to close the existing project dialog first) - Set up the correct JDK version, as follows:
- Click
Configure
>Structure for New Projects
and 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.java
file, right-click it, and chooseRun Duke.main()
. If the setup is correct, you should see something like the below:Hello from ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___|
Duke is a task managing application that helps you keep track of your task list.
- Show all of the tasks in the list
- Add a task of a specific type(Todo/Deadline/Event) into the list
- Delete a task from the list
- Search for related tasks by keyword
- mark a task as done
- Store the list in a local txt file
- Load the list from the local txt file
- Tag function: give each task a tag
- Search by tag
- Priority function: give each a priority number
- List the tasks by priority
- List the tasks of a specific type(Deadline/Event/Todo)
User input format: hi
Example:
hi
Expected Outcome:
Hi!
User input format: list
Example:
list
Expected Outcome:
Here are the tasks in your list:
1. [T][✓] homework
2. [T][✘] ip
3. [D][✘] quiz (by: 9月 18 2019)
User input format: todo DESCRIPTION
Example:
todo CS2103S Quiz
Expected Outcome:
Got it. I've added this task:
[T][✘] CS2103 Quiz
Now you have 4 tasks in the list.
User input format: deadline DESCRIPTION /by YYYY-MM-DD
Example:
Got it. I've added this task:
[D][✘] CS2103S ip (by: 2020-09-18)
Now you have 5 tasks in the list.
Expected Outcome:
Got it. I've added this task:
[E][✘] CS2101 OP meeting (at: Wednesday 9pm)
Now you have 6 tasks in the list.
User input format: event DESCRIPTION /at TIME
Example:
event CS2101 OP meeting /at Wednesday 9pm
Expected Outcome:
Got it. I've added this task:
[E][✘] CS2101 OP meeting (at: Wednesday 9pm)
Now you have 6 tasks in the list.
User input format: done INDEX
Example:
done 4
Expected Outcome:
Nice! I've marked this task as done:
[T][✓] CS2103 Quiz
User input format: find KEYWORD
Example:
find 2103
Expected Outcome:
Here are the tasks found:
[T][✘] 2103
[T][✓] CS2103 Quiz
[D][✘] CS2103S ip (by: 2020-09-18)
User input format: delete INDEX
Example:
delete 2
Expected Outcome:
Noted. I've removed this task:
[T][✘] 2103
Now you have 5 tasks in the list
User input format: bye
Example:
bye
Expected Outcome:
Bye!
The main window of the application closes.
The programme stops and you will exit from the application.