fix: Empty lines in the input txt file.

This commit is contained in:
2024-09-12 19:20:49 -04:00
parent 1c1e6a847d
commit da3bf82579
+3
View File
@@ -19,6 +19,9 @@ public class CalibrationPartOne {
// BufferedReader br = new BufferedReader(new StringReader(coor))) {
String line;
while ((line = br.readLine()) != null) {
if (line.trim().isEmpty()) {
continue;
}
int first = -1;
int last = -1;
for (String c : line.split("")) {