diff --git a/README.md b/README.md index 113f058..f94a6c4 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# Lender Project \ No newline at end of file +# Contacts Project diff --git a/src/main/java/Contacts0.java b/src/main/java/Contacts0.java index 212842f..3b2c763 100644 --- a/src/main/java/Contacts0.java +++ b/src/main/java/Contacts0.java @@ -3,14 +3,12 @@ public class Contacts0 { + public static final int MAX_CAPACITY = 100; + public static void main(String[] args) { final Scanner SCANNER = new Scanner(System.in); - System.out.println("|| ==================================================="); - System.out.println("|| ==================================================="); - System.out.println("|| Contacts - Version 0.0"); - System.out.println("|| Welcome to Contacts!"); - System.out.println("|| ==================================================="); - String[][] list = new String[100][3]; + showWelcomeScreen(); + String[][] list = new String[MAX_CAPACITY][3]; int count = 0; while (true) { System.out.print("|| " + "Enter command: "); @@ -146,4 +144,12 @@ public static void main(String[] args) { } } + private static void showWelcomeScreen() { + System.out.println("|| ==================================================="); + System.out.println("|| ==================================================="); + System.out.println("|| Contacts - Version 0.0"); + System.out.println("|| Welcome to Contacts!"); + System.out.println("|| ==================================================="); + } + } diff --git a/src/main/java/Contacts1.java b/src/main/java/Contacts1.java index 8ede41d..4f2d805 100644 --- a/src/main/java/Contacts1.java +++ b/src/main/java/Contacts1.java @@ -1,11 +1,3 @@ - -/* - * NOTE : ============================================================= - * This class is written in a procedural fashion (i.e. not Object-Oriented) - * Yes, it is possible to write non-OO code using an OO language. - * ==================================================================== - */ - import java.util.Scanner;