mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
355 B
Java
16 lines
355 B
Java
class Test {
|
|
void test(int y){
|
|
<selection>String x;
|
|
switch (y){
|
|
case 3:
|
|
x = "1";
|
|
break;
|
|
case 5:
|
|
x = "2";
|
|
break;
|
|
default:
|
|
throw new IllegalArgumentException();
|
|
}</selection>
|
|
System.out.println(x);
|
|
}
|
|
} |