mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 19:02:04 +07:00
GitOrigin-RevId: 72c7c6ec9865984b997a05c2b8756771aa388ddb
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++;
|
|
}
|
|
}
|
|
}
|