mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
17 lines
267 B
Java
17 lines
267 B
Java
class Test {
|
|
|
|
private boolean test() {
|
|
for(int i=0; i<10; i++) {
|
|
if (Math.random() > 0.5) return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
String useTest() {
|
|
if(<caret>test()) {
|
|
return "foo".trim();
|
|
} else {
|
|
return "bar".trim();
|
|
}
|
|
}
|
|
} |