mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
15 lines
336 B
Java
15 lines
336 B
Java
public class Test {
|
|
String test(String s){
|
|
return switch (s) {
|
|
case "a" -> {
|
|
<selection>System.out.println();
|
|
yield "one";</selection>
|
|
}
|
|
case "b" -> {
|
|
System.out.println();
|
|
yield "two";
|
|
}
|
|
default -> "three";
|
|
};
|
|
}
|
|
} |