gpt4 book ai didi

java为什么if语句中的long值验证错误

转载 作者:搜寻专家 更新时间:2023-10-31 20:22:53 24 4
gpt4 key购买 nike

在下面的代码中,if 语句的计算结果为 true,但我可以看到它的 false
显然这里有一个逻辑可以解释这一点,但我不记得了。
2 部表现现象学的电影:
http://www.youtube.com/watch?v=DFcRfPErfik
http://www.youtube.com/watch?v=NEC04-kLQBE

“holderCompleated.textInfo.setT...”这一行即使 diffHours==1 也会运行
看图片,diffHours=1 和 Expression 窗口显示 false

enter image description here

这个问题的总结可以是:
(不要害怕问最愚蠢的问题 :))

这是我输入if语句时的图片

enter image description here

最佳答案

something strange going on. im adding the Log.d(TAG,... inside the if statement and the debugger is stepping over it. Also have a Log.d(TAG,.. just before the if statement and that one is ok.

也许清理没有起作用,您正在运行一些旧代码。您是否尝试重新启动 Eclipse?然后可能删除并重新导入一些项目?

这也可以解释为什么您会看到调试器进入 if 语句:它不是!运行代码与源代码不同步。

关于java为什么if语句中的long值验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8111765/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com