Day03 p1
Fix. Changing sample function to match what the input function uses Signed-off-by: Eoghan Conlon <git@eoghanconlon.ie>
This commit is contained in:
parent
44c6eb27e5
commit
28752ace22
1 changed files with 36 additions and 35 deletions
|
@ -11,7 +11,7 @@ public class Day03 extends Input {
|
||||||
public int part1_sample(){
|
public int part1_sample(){
|
||||||
int rValue = 0;
|
int rValue = 0;
|
||||||
|
|
||||||
String input = this.input.getSample_input().getFirst();
|
for(String input : this.input.getSample_input()) {
|
||||||
String pattern = "mul(";
|
String pattern = "mul(";
|
||||||
String num1_s = "";
|
String num1_s = "";
|
||||||
String num2_s = "";
|
String num2_s = "";
|
||||||
|
@ -52,6 +52,7 @@ public class Day03 extends Input {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return rValue;
|
return rValue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue