r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

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.