mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
253 B
Java
12 lines
253 B
Java
class C {
|
|
private int[] list;
|
|
|
|
private int find(int id) {
|
|
<selection>for (int n : list) {
|
|
if (n == id) {
|
|
return n <= 0 ? 0 : n;
|
|
}
|
|
}</selection>
|
|
throw new RuntimeException();
|
|
}
|
|
} |