-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathApp.java
More file actions
35 lines (29 loc) · 1021 Bytes
/
Copy pathApp.java
File metadata and controls
35 lines (29 loc) · 1021 Bytes
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
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
Repository repository = new Repository();
Scanner scanner = new Scanner(System.in);
Menu.mainMenu();
int choose = scanner.nextInt();
switch (choose) {
case 0:
System.exit(0);
break;
case 1:
System.out.println("DANH SÁCH SẢN PHẨM");
repository.show();
break;
case 2:
System.out.println("Các sản phẩm có giá trên 10000: ");
repository.filterProductByPrice();
break;
case 3:
repository.countProductByAmountSale();
break;
case 7:
repository.sortProductByName();
System.out.println("Sản phẩm sau khi sắp xếp: ");
repository.show();
}
}
}