📄 jlab0304_2a.java
字号:
class JLab0304_2A{
public static void main(String args[]){
char sym;
sym='a';
switch(sym){
case 'a': System.out.println("The symbol is an a.");
case 'b': System.out.println("The symbol is an b.");
case 'c': System.out.println("The symbol is an c.");
default: System.out.println("The symbol is not a,b,or c");
}
System.out.println("Switch is completed");
}
}
class JLab0304_2B{
public static void main(String args[]){
char sym;
sym='a';
switch(sym){
case 'a': System.out.println("The symbol is an a.");break;
case 'b': System.out.println("The symbol is an b.");break;
case 'c': System.out.println("The symbol is an c.");break;
default: System.out.println("The symbol is not a,b,or c");
}
System.out.println("Switch is completed");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -