mirror of
https://github.com/morluto/awesome-reverse-engineering.git
synced 2026-12-03 13:41:18 -05:00
e8ea617cb1
Add 23 A0/A1 resources with pinned source reviews and explicit compatibility limits. Reproduce four bounded examples in CI and document one exact Chrome DevTools link-check exception. Refs #6.
17 lines
387 B
Java
17 lines
387 B
Java
public class BranchDemo {
|
|
record Pair(int left, int right) {}
|
|
|
|
static int choose(int value) {
|
|
return switch (value) {
|
|
case 0 -> 11;
|
|
case 1, 2 -> 22;
|
|
default -> -1;
|
|
};
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Pair pair = new Pair(2, 3);
|
|
System.out.println(choose(pair.left()) + pair.right());
|
|
}
|
|
}
|