diff --git a/2113lect.iml b/2113lect.iml new file mode 100644 index 0000000..f76df2b --- /dev/null +++ b/2113lect.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/Contacts0.java b/src/main/java/Contacts0.java index e23d58a..3902c82 100644 --- a/src/main/java/Contacts0.java +++ b/src/main/java/Contacts0.java @@ -1,16 +1,14 @@ import java.util.Scanner; - public class Contacts0 { + public static final int MAX_ENTITIES = 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]; + printWelcomeScreen(); + + String[][] list = new String[MAX_ENTITIES][3]; int count = 0; while (true) { System.out.print("|| " + "Enter command: "); @@ -146,4 +144,12 @@ public static void main(String[] args) { } } -} \ No newline at end of file + 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("|| ==================================================="); + } + +}