String first = null;
String second = null;
ArrayList<Pair<String, String>> training = new ArrayList<Pair<String, String>>();
StringTokenizer tokens = null;
FileControllerD fc = new FileControllerD();
BufferedReader input = fc.getFileR(_path + "files" + _sep + "training.txt");
try {
parella = input.readLine();
}
catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
while (parella != null) {
tokens = new StringTokenizer(parella);
if (tokens.hasMoreTokens()) {
first = tokens.nextToken();
second = tokens.nextToken();
if (!first.equals(second)) {
Pair<String,String> pair = new Pair<String,String>(first, second);
training.add(pair);
}
}
try {
parella = input.readLine();
}
catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
input = fc.getFileR(_path + "files" + _sep + "newrules.txt");
try {
parella = input.readLine();
}
catch (IOException ex) {