mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
16 lines
269 B
Java
16 lines
269 B
Java
package test;
|
|
|
|
public class Test1 {
|
|
void test(){
|
|
String s = "sample";
|
|
switch (s) {
|
|
case "one" -> <selection>foo();</selection>
|
|
default -> System.out.println();
|
|
};
|
|
}
|
|
|
|
String foo(){
|
|
return "42";
|
|
}
|
|
}
|