Skip to content

[limleyhooi] iP#227

Open
lhlim88 wants to merge 32 commits intonus-cs2113-AY2425S2:masterfrom
lhlim88:master
Open

[limleyhooi] iP#227
lhlim88 wants to merge 32 commits intonus-cs2113-AY2425S2:masterfrom
lhlim88:master

Conversation

@lhlim88
Copy link
Copy Markdown

@lhlim88 lhlim88 commented Feb 28, 2025

No description provided.

Copy link
Copy Markdown

@telferang telferang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see the effort. Keep it up!

Comment on lines +3 to +8
protected String time1;
protected String time2;
public Event(String description, String time1, String time2){
super(description);
this.time1 = time1;
this.time2 = time2;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a more descriptive name such as startTime, endTime instead of time1 and time2.

What can I do for you?
""");
Scanner s = new Scanner(System.in);
Task[] tasks = new Task[100]; //create an Task array called tasks that hold 100 Task elements;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a constant to avoid magic numbers

Comment on lines +87 to +90
try{
if(input.isEmpty()){
throw new RickException();
}}catch(RickException e){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try{
if(input.isEmpty()){
throw new RickException();
}}catch(RickException e){
try {
if (input.isEmpty()) {
throw new RickException();
}
} catch (RickException e) {

Consider following the coding standard as shown above to maintain consistency and readability throughout your code.

Comment on lines +106 to +107
String Deadline_description = part[0].trim();
String Deadline_date = part[1].trim();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable names must be in camelCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants