-
Notifications
You must be signed in to change notification settings - Fork 187
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
[LWachtel1] iP #201
base: master
Are you sure you want to change the base?
[LWachtel1] iP #201
Conversation
(cherry picked from commit df84b6a5039882942c1596bfb81b04083e6d9626)
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.
Great progress on iP. Do take note to follow the coding standards from java coding standard.
src/main/java/Deadline.java
Outdated
/* | ||
public String getBy() { | ||
return this.by; | ||
} | ||
|
||
public String setBy() { | ||
return this.by; | ||
}*/ |
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.
/* | |
public String getBy() { | |
return this.by; | |
} | |
public String setBy() { | |
return this.by; | |
}*/ |
Perhaps you might want to remove commented code that are not in use.
src/main/java/Duke.java
Outdated
import java.util.Scanner; | ||
import java.util.ArrayList; | ||
|
||
// I am using the Google Java Style Guide https://google.github.io/styleguide/javaguide.html |
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.
For this module, we are following this java coding standard.
src/main/java/Duke.java
Outdated
System.out.printf("%s%n"," ____________________________________________________________"); | ||
} | ||
|
||
public static void replyAddedTask(){ |
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.
public static void replyAddedTask(){ | |
public static void replyAddedTask() { |
Perhaps considering adding a space here to be consistent with the rest of the methods.
src/main/java/Duke.java
Outdated
String taskType=userCommand.split(" ")[0].toUpperCase(); | ||
|
||
switch (taskType) { | ||
default: |
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.
Perhaps you might want to put "default" statement at the end of the switch statements.
src/main/java/Duke.java
Outdated
break; | ||
|
||
case "DEADLINE": | ||
String[] deadLine=userCommand.split("/"); |
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.
String[] deadLine=userCommand.split("/"); | |
String[] deadLine = userCommand.split("/"); |
You might want to consider adding spaces before and after the "=" sign for better readability.
src/main/java/Duke.java
Outdated
|
||
switch (markChoice) { | ||
|
||
case "MARK": |
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.
case "MARK": | |
case "MARK": |
Perhaps you might want to put the case statements with same amount of indentation with the switch statement in accordance to java coding standard.
src/main/java/Duke.java
Outdated
boolean shouldExitLoop=false; | ||
|
||
while (!shouldExitLoop) { | ||
if (enteredCommands.size()>=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.
You might want to consider using a constant to replace the magic number of 100.
Add Level-5: exception handling, packages & classes
Add 'find KEYWORD' command support
No description provided.