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