fix: Empty lines in the input txt file.
This commit is contained in:
@@ -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("")) {
|
||||
|
||||
Reference in New Issue
Block a user