Ez meg gyorsabb:
for(Path path : stream){
Path path2file = path.resolve("stat");
try ( Stream br = Files.lines(path2file))
{
String line;
line = br.findFirst().get();
ctr++;
} catch(IOException e){
err++;
}
}
a stream persze string generic parammal van, csak kiszedi a drupaaal
----------------------
while (!sleep) sheep++;