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.
- Create task:
todo- Required format:
todo [description]
- Required format:
event- Required format:
event [description] /at [sometime]
- Required format:
deadline- Required format:
deadline [description] /by [sometime]
- Required format:
- View list of tasks:
list- Required format:
list - Returns a list of tasks
- Required format:
- Mark task as done:
done- Required format:
done [task number in list] - Task number must be less than or equal to total number of tasks
- Required format:
- Delete tasks:
delete- Required format:
delete [task number in list] - Task number must be less than or equal to total number of tasks
- Required format:
- Search for words:
find- Required format:
find [single non-spaced word]
- Required format:
bye- Terminates program
- The list of tasks saves to hard drive, but the data will not reflect if you have marked it as done. (See section Bugs and Issues)
- If you mark a task as done, it does not save to hard drive. So if you close and open the app and look at the list, all the tasks will be marked as undone.
- Most errors are not handled. So if you write symbols like
\instead of/, or do not follow the correct format foreventordeadline, the app will crash.
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 ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___|