Skip to content

Update code to improve readability#27

Open
lucas-sc0 wants to merge 1 commit intonus-cs2113-AY2425S1:mainfrom
lucas-sc0:main
Open

Update code to improve readability#27
lucas-sc0 wants to merge 1 commit intonus-cs2113-AY2425S1:mainfrom
lucas-sc0:main

Conversation

@lucas-sc0
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Author

@lucas-sc0 lucas-sc0 left a comment

Choose a reason for hiding this comment

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

Good job overall!

Comment on lines +6 to +7
public static final int MAX_ENTITIES = 100;
public static final int FIELD_COUNT = 3;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good job extracting a constant


public class Contacts0 {

public static final int MAX_ENTITIES = 100;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Can you think a better name than MAX_ENTITIES?

Comment on lines +148 to +155
private static void printWelcomeScreen() {
System.out.println("|| ===================================================");
System.out.println("|| ===================================================");
System.out.println("|| Contacts - Version 0.0");
System.out.println("|| Welcome to Contacts!");
System.out.println("|| ===================================================");
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good job refactoring code.

Comment on lines +11 to +12
printWelcomeScreen();
String[][] list = new String[MAX_ENTITIES][FIELD_COUNT];
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good job

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.

1 participant