Is si because I use Scanner and I should use a bufferedReader? if so why? And what is the difference between: allLines.removeAll(linesForRemoval); && linesForRemoval.clear(); ??