switch
(
expr1
)中,
expr1
是一個整數(shù)表達式。因此傳遞給
switch
和
case
語句的參數(shù)應該是
int
、
short
、
char
或者
byte
。
long,string
都不能作用于
swtich
。
大盤預測 國富論