JavaShuo
栏目
标签
Cannot switch on a value of type String for source level below 1.7. Only
时间 2021-01-08
标签
1.7. Only
繁體版
原文
原文链接
switch语句的判断条件可以接受int,byte,char,short,不能接受其他类型 只有JDK版本1.7以上才可以支持String 你可能会说我的jdk是1.7以上啊, 这里说的版本是java解释器的版本, eclipse修改办法: 项目右键 > project > properties > java compiler > compiler> compliance level:选1.7或
>>阅读原文<<
相关文章
1.
android switch(String)错误:Cannot switch on a value of type String for source level below 1.7...
2.
'' operator is not allowed for source level below 1.7
3.
Eclipse '《》'operator is not allowed for source level below 1.7
4.
Cannot deserialize value of type `java.util.Date` from String
5.
Cannot determine value type from string 'xxxxxx'
6.
Value of type java.lang.String cannot be conver...
7.
Value of type "string" is not suitable for value type "Numeric (unsigned)
8.
Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
9.
Value of key '' is not a string! Cannot translate the value of keypath ''. Use the v
10.
java.lang.IllegalStateException: Cannot convert value of type
更多相关文章...
•
XSLT
元素
-
XSLT 教程
•
Scala for循环
-
Scala教程
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
JDK13 GA发布:5大特性解读
相关标签/搜索
for...of
for..of
level
source
switch
value
1.7
type
string
a'+'a
Redis教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
NLP《词汇表示方法(六)ELMO》
2.
必看!RDS 数据库入门一本通(附网盘链接)
3.
阿里云1C2G虚拟机【99/年】羊毛党集合啦!
4.
10秒钟的Cat 6A网线认证仪_DSX2-5000 CH
5.
074《从零开始学Python网络爬虫》小记
6.
实例12--会动的地图
7.
听荐 | 「谈笑风声」,一次投资圈的尝试
8.
阿里技术官手写800多页PDF总结《精通Java Web整合开发》
9.
设计模式之☞状态模式实战
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
android switch(String)错误:Cannot switch on a value of type String for source level below 1.7...
2.
'' operator is not allowed for source level below 1.7
3.
Eclipse '《》'operator is not allowed for source level below 1.7
4.
Cannot deserialize value of type `java.util.Date` from String
5.
Cannot determine value type from string 'xxxxxx'
6.
Value of type java.lang.String cannot be conver...
7.
Value of type "string" is not suitable for value type "Numeric (unsigned)
8.
Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
9.
Value of key '' is not a string! Cannot translate the value of keypath ''. Use the v
10.
java.lang.IllegalStateException: Cannot convert value of type
>>更多相关文章<<