This is a project based on a template for a greenfield Java project. It was named after the Java mascot Duke but has since been renamed to Mike. Given below are instructions on how to use it.
- 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 the
SDK default
option.
- In the same dialog, set the Project language level field to the
- After that, locate the
src/main/java/Duke.java
file, right-click it, and chooseRun 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:___ __ _______ ___ ________ ________ _____ ______ _______ |\ \ |\ \|\ ___ \ |\ \ |\ ____\|\ __ \|\ _ \ _ \|\ ___ \ \ \ \ \ \ \ \ __/|\ \ \ \ \ \___|\ \ \|\ \ \ \\\__\ \ \ \ __/| \ \ \ __\ \ \ \ \_|/_\ \ \ \ \ \ \ \ \\\ \ \ \\|__| \ \ \ \_|/__ \ \ \|\__\_\ \ \ \_|\ \ \ \____\ \ \____\ \ \\\ \ \ \ \ \ \ \ \_|\ \ \ \____________\ \_______\ \_______\ \_______\ \_______\ \__\ \ \__\ \_______\ \|____________|\|_______|\|_______|\|_______|\|_______|\|__| \|__|\|_______| Hi! I'm Mike, your personal assistant! How can I help you today? We have loaded your file and this is the current state of your list. Here are the tasks in your list: You have a total of 0 task(s).
- If you're starting from a new file it should show that you have 0 task in the list, otherwise it will display the last save state of your task list.
Mike can only take in 1 of 9 specific commands below. To use the command, follow the input format and replace the description, date of deadline etc. accordingly to get your desired output.
Your output should look similar to the sample input provided under each command.
todo
: creates a todo task and adds it to the task list.- Input format:
todo description of task
- Sample output:
Got it. I've added this task: [T][ ] description of task Now you have 1 task(s) in the list.
- Input format:
deadline
: creates a deadline and adds it to the task list.- Input format:
deadline description of task /by date of deadline
- Sample output:
Got it. I've added this task: [D][ ] description of task (by: date of deadline) Now you have 2 task(s) in the list.
- Input format:
event
: creates an event and adds it to the list.- Input format:
event description of task /from start date of event /to end date of event
- Sample output:
Got it. I've added this task: [E][ ] description of task (from: start date of event to: end date of event) Now you have 3 task(s) in the list.
- Input format:
list
: shows all the current tasks in the task list.- Input format:
list
- Sample output:
Here are the task(s) in your list: 1.[T][ ] description of task 2.[D][ ] description of task (by: date of deadline) 3.[E][ ] description of task (from: start date of event to: end date of event) You have a total of 3 task(s).
- Input format:
mark
: marks a certain task as completed.- Input format:
mark (task number)
- Sample output:
OK, I've marked this task as completed: [X] description of task
- Input format:
unmark
: unmarks a certain completed task.- Input format:
unmark (task number)
- Sample output:
OK, I've marked this task as not done yet: [ ] description of task
- Input format:
find
: searches for tasks that contains a given keyword.- Input format:
find (keyword)
- Sample output:
Here's the list of task(s) in your list that matches your keyword: 1.[T][ ] description of task 2.[D][ ] description of task (by: date of deadline) 3.[T][X] description of task
- Input format:
delete
: delete a certain task from the task list.- Input format:
delete (task number)
- Sample output:
Noted. I've removed this task 3.[E][ ] description of task (from: start date of event to: end date of event)
- Input format:
bye
: exits the program.- Input format:
bye
- Sample output:
Good bye! Hope to see you again soon.
- Input format: