WS-07-Multithreading-Basics-and-Hashing

This commit is contained in:
2026-05-24 23:43:28 +03:30
parent 83746b88f6
commit 160475f978
13 changed files with 180 additions and 109 deletions
+3 -10
View File
@@ -13,20 +13,13 @@ public class FileManager {
List<String> lines = new ArrayList<>();
BufferedReader reader = new BufferedReader(new FileReader(path));
String line;
while ((line = reader.readLine()) != null) {
// TODO:
// Add line to list
if (!line.trim().isEmpty()) {
lines.add(line.trim());
}
}
reader.close();
return lines;
}
}