-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSmartStoreApp.java
More file actions
39 lines (31 loc) · 1.16 KB
/
SmartStoreApp.java
File metadata and controls
39 lines (31 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package me.smartstore;
import me.smartstore.group.Group;
import me.smartstore.group.GroupType;
import me.smartstore.group.Groups;
import me.smartstore.group.Parameter;
import me.smartstore.menu.MainMenu;
public class SmartStoreApp {
private final Groups allGroups = Groups.getInstance();
private final MainMenu mainMenu = MainMenu.getInstance();
// singleton
private static SmartStoreApp smartStoreApp;
public static SmartStoreApp getInstance() {
if (smartStoreApp == null) {
smartStoreApp = new SmartStoreApp();
}
return smartStoreApp;
}
private SmartStoreApp() {}
public void details() {
System.out.println("\n\n===========================================");
System.out.println(" Title : SmartStore Customer Classification");
System.out.println(" Release Date : 23.05.10");
System.out.println(" Copyright 2023 Jongmin No rights reserved.");
System.out.println("===========================================\n");
}
public void run() {
details();
allGroups.add(new Group(new Parameter(0, 0), GroupType.NONE));
mainMenu.manage();
}
}