⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jlab0304_2a.java

📁 java教程中的编程实例
💻 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 + -