?? switch1.java
字號(hào):
//c3:Switch1.java
// author:ZhangHongbin
//This program is protected by copyright laws.
//Test switch sentence.
public class Switch1
{
public static void main(String[] args)
{
int num=0;
int choice=1;
switch(choice)
{
case 1:
num=1;
System.out.println("choice=1");
break;
case 2:
num=2;
System.out.println("choice=2");
break;
case 3:
num=3;
System.out.println("choice=3");
break;
default:
num=4;
System.out.println("choice=default");
}
System.out.println("choice= "+choice+" num= "+num);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -