[Liam Van] IP#199
Conversation
| public static void main(String[] args) { | ||
|
|
||
| Duke duke = new Duke(); | ||
| ArrayList<String> userInputs = new ArrayList<>(); |
|
|
||
| } | ||
| exit(); | ||
| } |
There was a problem hiding this comment.
Just nitpicking, but would be nice if there was a space after this :^)
| } | ||
| public static void markDone(int index, ArrayList<String> userInputs, boolean isMark) { | ||
| if (isMark) { | ||
| String org = userInputs.get(index - 1); |
There was a problem hiding this comment.
I think it would be better to use a more descriptive name -- not sure what org means here
…re to switch case
Add support for deleting tasks from the list. And Code cleanup
# Conflicts: # src/main/java/duke/Duke.java
| Main function that takes user input and interpets how to store and what to do with it | ||
| */ | ||
| public static void main(String[] args) { | ||
|
|
There was a problem hiding this comment.
Do avoid leaving spaces like this as it goes against the Java Coding Standards
| public Duke() { | ||
|
|
||
| } |
There was a problem hiding this comment.
Do consider removing empty methods, if not you could refactor some of your code into this. :)
| + "| | | | | | | |/ / _ \\\n" | ||
| + "| |_| | |_| | < __/\n" | ||
| + "|____/ \\__,_|_|\\_\\___|\n"; | ||
| System.out.println("Hello from\n" + logo); |
There was a problem hiding this comment.
I notice that you have a tendency to use magic strings and numbers. Do try to avoid that where possible, and instead use constants to set your strings/numbers.
| System.out.println("\t____________________________________________________________"); | ||
| } | ||
| /* | ||
| This Returns the input as a Deadline object |
There was a problem hiding this comment.
Please remove such comments as they go against the java coding standards.
| import dukeException.DukeException; | ||
|
|
||
| public class Todo extends Task { | ||
| public Todo(String description, boolean isMark) throws DukeException { |
There was a problem hiding this comment.
Please do remove the extra space between ) and throws!
| @@ -0,0 +1,5 @@ | |||
| package dukeException; | |||
|
|
|||
| public class DukeException extends Throwable { | |||
There was a problem hiding this comment.
Try not to leave your exceptions empty. Perhaps you could have the corresponding error message and a method to print/return the error message?
No description provided.