-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Siti Nadiah] iP #48
base: master
Are you sure you want to change the base?
[Siti Nadiah] iP #48
Conversation
Todo, Events, Deadlines
This reverts commit ec8b25f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code is really neat! Good job following the coding standard so well. It's very readable and easy to follow.
src/main/java/Duke.java
Outdated
|
||
System.out.println("What is up my dudes!\n" + tos); | ||
|
||
String intro = "____________________________________________________________\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could use the LINE constant for this line?
src/main/java/Duke.java
Outdated
} | ||
|
||
private static void printWelcomeMessage() { | ||
String tos = "──────────▄▄▄▄▄▄▄▄▄▄▄──────────\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like your mascot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, just make sure the place is right for comment.
src/main/java/Duke.java
Outdated
taskNum--; | ||
Tasks[taskNum].setDone(true); | ||
printDone(Tasks[taskNum]); | ||
} catch (ArrayIndexOutOfBoundsException e) { //If arr[1] does not exist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the Java Code Standards, it's better to make the comments in the next single line.
src/main/java/Duke.java
Outdated
|
||
private static void printWelcomeMessage() { | ||
String tos = "──────────▄▄▄▄▄▄▄▄▄▄▄──────────\n" + | ||
"─────▄▄▀▀▀▀──────────▀▀▄▄──────\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like too!👻
src/main/java/Duke.java
Outdated
System.out.println("Oops! Event description is incomplete!"); | ||
} | ||
break; | ||
default: //unknown command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is also a problem on where to comment. Please comment in a newline.
src/main/java/Duke.java
Outdated
|
||
private static void runChatbot() { | ||
Task[] Tasks = new Task[100]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete some useless blank lines.
Add delete method
Add save method
No description provided.