华为面试的一道题目

来源:互联网 发布:知乎日报 阅读模式 编辑:程序博客网 时间:2024/04/28 20:19
switch(n)中的n不能是以下那种类型  A char B int C unsigned D double











JAVA中switch只能是int,或者可以隐式转为int的数据类型
byte,char,int.