forked from Nguyendacphong09/OOP.Dictionary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainTest.java
More file actions
51 lines (49 loc) · 1.66 KB
/
Copy pathmainTest.java
File metadata and controls
51 lines (49 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
import java.util.Scanner;
public class mainTest {
public static void main(String[] args) {
DictionaryManagement dictionary = new DictionaryManagement();
DictionaryCommandline test = new DictionaryCommandline();
dictionary.insertFromFile();
System.out.println("--------TỪ ĐIỂN ANH-VIỆT------");
System.out.println("Nhập lựa chọn");
System.out.println("1.Tra cứu từ");
System.out.println("2.Thêm từ mới vào từ điển");
System.out.println("3.Xóa từ khỏi từ điển");
System.out.println("4.Sửa từ vựng trong từ điển");
System.out.println("5.kiểm tra hàm search");
System.out.println("6.In từ điển ra file");
System.out.println("7.In ra danh sách từ vựng");
Scanner scan = new Scanner(System.in);
int chose = scan.nextInt();
switch (chose){
case 1: {
dictionary.dictionaryLookup();
break;
}
case 2: {
dictionary.addWord();
break;
}
case 3:{
dictionary.deleteWord();
break;
}
case 4:{
dictionary.repairWord();
break;
}
case 5:{
test.dictionarySearcher();
break;
}
case 6:{
dictionary.dictionaryExportToFile();
break;
}
case 7:{
test.showAllWord();
break;
}
}
}
}