在这个字符串 eclipse 中显示“不匹配”的死代码警告?
String b = ("goodString")==("goodString") ? "Condition Macth": "Not Match";它甚至在编译之前检查字符串吗?
String a = ("goodString".equals("goodString")) ? "Condition Macth" : "Not Match";如果我更改为 .equals 警告关闭。
手掌心
不负相思意
catspeake
随时随地看视频慕课网APP
相关分类