正文java 短路与(||)时报错The operator || is undefined for the argument type(s) int, booleanIP云V管理员/2022-12-01/3 阅读 12/01提示:扫一扫查出行【扫一扫了解最新限行尾号】复制提示 今天在使用短路与时,报错 The operator || is undefined for the argument type(s) int, boolean 代码如下: 最后发现是少了一个=,比较要使用 == 修改后 百度时发现这篇博客: https://blog.csdn.net/u010416101/article/details/64219649 上说|| 只能出现在boolean类型的运算上. int类型运算上出现|| 会报上述错误。学习了 来自为知笔记(Wiz)