Fix. Resetting the number strings

Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
Eoghan Conlon 2024-12-09 12:01:28 +00:00
parent fe6f19ef52
commit bb85b88e35

View file

@ -42,6 +42,13 @@ public class Day03 extends Input {
rValue += (num1 * num2);
num = 1;
pattern_cnt = 0;
num1_s = "";
num2_s = "";
} else {
num = 1;
pattern_cnt = 0;
num1_s = "";
num2_s = "";
}
}
}