diff --git a/src/main/java/Contacts0.java b/src/main/java/Contacts0.java index e23d58a..5733a87 100644 --- a/src/main/java/Contacts0.java +++ b/src/main/java/Contacts0.java @@ -5,11 +5,7 @@ public class Contacts0 { 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("|| ==================================================="); + printGreeting(); String[][] list = new String[100][3]; int count = 0; while (true) { @@ -146,4 +142,12 @@ public static void main(String[] args) { } } + private static void printGreeting() { + System.out.println("|| ==================================================="); + System.out.println("|| ==================================================="); + System.out.println("|| Contacts - Version 1.0"); + System.out.println("|| Welcome to Contacts!"); + System.out.println("|| ==================================================="); + } + } \ No newline at end of file diff --git a/textui-test/EXPECTED.TXT b/textui-test/EXPECTED.TXT index 047bf26..7e9849d 100644 --- a/textui-test/EXPECTED.TXT +++ b/textui-test/EXPECTED.TXT @@ -1,6 +1,6 @@ || =================================================== || =================================================== -|| Contacts - Version 0.0 +|| Contacts - Version 1.0 || Welcome to Contacts! || =================================================== || Enter command: || [Command entered:help]