String second = null;
String user = userID+"";
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()) {
second = tokens.nextToken(); ///SWAP FET
first = 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);
}
}
if (userID != 0) {
input = fc.getFileR(_path + "users" + _sep + user + _sep + "usertraining.txt");
try {
parella = input.readLine();
}
catch (IOException ex) {