[Ria Khaitan] iP#328
Conversation
| @@ -1,10 +1,108 @@ | |||
| import exceptions.DukeExceptions; | |||
There was a problem hiding this comment.
Should the import statements be ordered differently?
| System.out.println("|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|"); | ||
| } | ||
|
|
||
| public static String makeDesc(String[] text, int len) { |
There was a problem hiding this comment.
Perhaps a more intuitive variable name here?
| } | ||
| } | ||
|
|
||
| class ToDo extends Task { |
There was a problem hiding this comment.
I like how the code has been indented
markbiju
left a comment
There was a problem hiding this comment.
A good effort at following Java coding standards, with appropriate method naming and use of camelCase!
| File f = new File("/Users/riakhaitan/iP/ip/data/duke.txt"); | ||
| f.createNewFile(); | ||
|
|
||
| boolean directory = f.getParentFile().mkdirs(); |
There was a problem hiding this comment.
Just a suggestion, perhaps you could use a name for this variable that is more boolean-sounding such as isDirectory? Good use of mkdir() here, creating a directory to store data
| when = date; | ||
| } | ||
| public String toString() { | ||
| return "[D]" + super.toString() + " (: " + |
There was a problem hiding this comment.
A good practice would be to place a line break before an operator! Good use of line break to improve readability
| String[] textSplit = textSplitOne[0].split(" "); | ||
| String fullDesc = makeDesc(textSplit, textSplit.length); | ||
| try { | ||
| switch (textSplit[0]) { |
There was a problem hiding this comment.
For case clauses, there is no indentation
| System.out.println("You have " + lists.size() + " tasks left now! ^_^"); | ||
| lineTwo(); | ||
| break; | ||
| case "deadline": |
There was a problem hiding this comment.
Logical units within a block should be separated by a line, perhaps a space after each case would be ideal!
Merge remote-tracking branch 'origin/add-gradle-support' into Add-gradle-support
Merge branch 'branch-A-CodingStandard'
use assertions
code quality
…cies To implement JavaFX and incorporate gui in our code, we need to add the related dependencies for it. We add the corresponding dependencies to our build.gradle so we are able to use JavaFX and incorporate gui in our code. We need to add dependencies to our build.gradle so we can use gradle to build our gui, this is the most efficient way.
Halloumi ChatBot ^_^
The Halloumi ChatBot keeps track of your tasks and progress, all in one place. It's,
easySUPER EASY to use ⏩If you're a Java programmer, you can use it to practice Java too. Here's the
mainmethod:All you need to do is,
Features:
Some commands to get you started with Halloumi are: