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

📄 switch.java

📁 压缩包内是近180多个针对Java初学者编写的简单实例
💻 JAVA
字号:
class Switch {  
  public static void main(String args[]) {
    int i;
    for(i=0; i<7; i++)
      switch(i) {
        case 0: 
          System.out.println("i is zero");
          break;
        case 1: 
          System.out.println("i is one");
          break;
        case 2: 
          System.out.println("i is two");
          break;
        case 3: 
          System.out.println("i is three");
          break;
        default: 
          System.out.println("more then three");
      }
    }  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -