mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
15 lines
333 B
Java
15 lines
333 B
Java
public class Test {
|
|
String test(String s){
|
|
return switch (s) {
|
|
case "a" -> {
|
|
<selection>if (new Random().nextBoolean()) {
|
|
System.out.println();
|
|
yield "one";
|
|
}</selection>
|
|
yield "default";
|
|
|
|
}
|
|
default -> "two";
|
|
};
|
|
}
|
|
} |