最新回答 / The十King
switch只能用于整型变量和字符型变量,像你说的“快递公司”“圆通”都不能使用switch语句,switch语句代码较长,但是执行效率比if要高
2017-02-28
最新回答 / imoocflash
char不能和equals()一起用,String可以。Cannot invoke equals(char) on the primitive type char。如下图:<...图片...>可以用char,但就不能用equals()了。如下图:<...图片...>
2017-02-28