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