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("|| ==================================================="); + } + }