WS-07-Multithreading-Basics-and-Hashing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user