MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/teqb37/static_bool_iscrazymurderingrobot_false/i0ss32c/?context=3
r/ProgrammerHumor • u/speckz • Mar 15 '22
257 comments sorted by
View all comments
Show parent comment
2
Same here, I had to go to an online IDE and plug it in to see the expected behavior. Gotta say, I didn't expect Java to reassign variables inside the if statement. This is a memorable way to remember the second = sign.
View all comments
Show parent comment
2
u/[deleted] Mar 15 '22
Same here, I had to go to an online IDE and plug it in to see the expected behavior. Gotta say, I didn't expect Java to reassign variables inside the if statement. This is a memorable way to remember the second = sign.