mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
17 lines
291 B
Java
17 lines
291 B
Java
class MyWorld {
|
|
public boolean isH<caret>ello(Object o) {
|
|
return o instanceof String && ((String)o).startsWith("hello");
|
|
}
|
|
|
|
public void process(Object[] o) {
|
|
int i = 0;
|
|
while (isHello(o[i])) {
|
|
i++;
|
|
}
|
|
i = 0;
|
|
while (!isHello(o[i])) {
|
|
i++;
|
|
}
|
|
}
|
|
}
|