验证代码如下:
public class test{ public static void main(String[] args) { float b =1.0f;//double c=2.0;switch(b){ case 1.0f: break;//case 2.0;default: ;}} }
出错提示如下:
本文共 292 字,大约阅读时间需要 1 分钟。
验证代码如下:
public class test{ public static void main(String[] args) { float b =1.0f;//double c=2.0;switch(b){ case 1.0f: break;//case 2.0;default: ;}} }
出错提示如下:
转载于:https://www.cnblogs.com/friendan/archive/2011/12/18/2838132.html