jdk switch使用

jdk1.6及以前的jdk中switch中的变量有10种,分别是byte,short,int,char,enum。 jdk1.7之后switch中的变量能够为String类型了。
相关文章
相关标签/搜索