2008年8月28日 星期四

Java switch


switch運算式可以是
char
byte
short
int
enum

break;
很重要如果沒有輸入就會跳出所有執行

default
不一定要放結尾