monke
This commit is contained in:
parent
08333d2743
commit
a0d6414f88
2 changed files with 22 additions and 0 deletions
3
2022/day09/Day09.java
Normal file
3
2022/day09/Day09.java
Normal file
|
@ -0,0 +1,3 @@
|
|||
public class Day09 {
|
||||
|
||||
}
|
19
2022/day11/Monkey.java
Normal file
19
2022/day11/Monkey.java
Normal file
|
@ -0,0 +1,19 @@
|
|||
import java.util.List;
|
||||
|
||||
public class Monkey {
|
||||
private List<Integer> items;
|
||||
private char inspectOp;
|
||||
private int inspectFactor;
|
||||
private int trueDest;
|
||||
private int falseDest;
|
||||
|
||||
public Monkey (List<Integer> arr, char op, int factor, int trueD, int falseD) {
|
||||
items = arr;
|
||||
inspectOp = op;
|
||||
inspectFactor = factor;
|
||||
trueDest = trueD;
|
||||
falseDest = falseD;
|
||||
}
|
||||
|
||||
private parseOperator()
|
||||
}
|
Loading…
Reference in a new issue