mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
18 lines
303 B
Java
18 lines
303 B
Java
// "Replace with findFirst()" "false"
|
|
|
|
public class Main {
|
|
public boolean check(int value) {
|
|
return value == 3;
|
|
}
|
|
|
|
public void find() {
|
|
int end = 10;
|
|
for(<caret>int i=0; i<end; i++) {
|
|
if(check(i)) {
|
|
end = i;
|
|
break;
|
|
}
|
|
}
|
|
System.out.println(end);
|
|
}
|
|
} |