-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
55 lines (38 loc) · 1.57 KB
/
Main.java
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
52
53
54
55
package com.T2Alest1;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
LeitorDeArquivos leitor = new LeitorDeArquivos("/Users/octaviocarpes/Dropbox/T2Alest1/nomes.txt");
// leitor.setPath(" inserir caminho do arquivo aqui ");
ArrayList<String> aux = leitor.leArquivo();
//System.out.println(aux.get(2));
TreeOfChar tree = new TreeOfChar();
// tree.add(aux.get(0),aux.get(1));
// System.out.println(aux.get(0));
// System.out.println(aux.get(1));
// System.out.println(aux.get(2));
// System.out.println(aux.get(3));
// System.out.println(aux.get(4));
// System.out.println(aux.get(5));
// System.out.println(aux.get(6));
// System.out.println(aux.get(7));
// System.out.println(aux.get(8));
// System.out.println(aux.get(9));
// System.out.println(aux.get(10));
// System.out.println(aux.get(11));
// System.out.println(aux.get(12));
// System.out.println(aux.get(13));
// System.out.println(aux.get(14));
// System.out.println(aux.get(15));
// System.out.println(aux.get(16));
// System.out.println(aux.get(17));
// System.out.println(aux.get(18));
// System.out.println(aux.get(19));
for (int i = 0; i < aux.size()/2 ; i++) {
tree.add(aux.get(2*i),aux.get((2*i)+1));
}
tree.pesquisa("z");
//tree.add(aux.get(0),aux.get(1));
//tree.print();
}
}