JavaShuo
栏目
标签
android switch(String)错误:Cannot switch on a value of type String for source level below 1.7...
时间 2021-01-16
栏目
Android
繁體版
原文
原文链接
switch语句的判断条件可以接受int,byte,char,short,不能接受其他类型 只有JDK版本1.7以上才可以支持String 设置如下可解决问题:(若没有JDK1.7版,可下载一下安装) 菜单选项--》project->properties->java compiler->compiler compliance level:选1.7即可
>>阅读原文<<
相关文章
1.
Cannot switch on a value of type String for source level below 1.7. Only
2.
Eclipse '《》'operator is not allowed for source level below 1.7
3.
Java switch 语句使用 String 参数
4.
'' operator is not allowed for source level below 1.7
5.
Cannot deserialize value of type `java.util.Date` from String
6.
Cannot determine value type from string 'xxxxxx'
7.
MyEclipse报错:String cannot be resolved to a type
8.
java8中switch(String)的错误解决
9.
Value of type "string" is not suitable for value type "Numeric (unsigned)
10.
Value of key '' is not a string! Cannot translate the value of keypath ''. Use the v
更多相关文章...
•
C# 字符串(String)
-
C#教程
•
PHP 5 String 函数
-
PHP参考手册
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
JDK13 GA发布:5大特性解读
相关标签/搜索
switch
string
switch&nat
switch...case
2.switch
for...of
for..of
68.string
string&intern
1.string
Android
Redis教程
PHP 7 新特性
Thymeleaf 教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
android 以太网和wifi共存
2.
没那么神秘,三分钟学会人工智能
3.
k8s 如何 Failover?- 每天5分钟玩转 Docker 容器技术(127)
4.
安装mysql时一直卡在starting the server这一位置,解决方案
5.
秋招总结指南之“性能调优”:MySQL+Tomcat+JVM,还怕面试官的轰炸?
6.
布隆过滤器了解
7.
深入lambda表达式,从入门到放弃
8.
中间件-Nginx从入门到放弃。
9.
BAT必备500道面试题:设计模式+开源框架+并发编程+微服务等免费领取!
10.
求职面试宝典:从面试官的角度,给你分享一些面试经验
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Cannot switch on a value of type String for source level below 1.7. Only
2.
Eclipse '《》'operator is not allowed for source level below 1.7
3.
Java switch 语句使用 String 参数
4.
'' operator is not allowed for source level below 1.7
5.
Cannot deserialize value of type `java.util.Date` from String
6.
Cannot determine value type from string 'xxxxxx'
7.
MyEclipse报错:String cannot be resolved to a type
8.
java8中switch(String)的错误解决
9.
Value of type "string" is not suitable for value type "Numeric (unsigned)
10.
Value of key '' is not a string! Cannot translate the value of keypath ''. Use the v
>>更多相关文章<<