• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Funny pictures!

I can picture this... :D

LegoHell.jpg
 
^^^ LOL!

So that's what my code is always doing! ;) :D

Note to self: Never install one of @scary alien's apps. ;)

(Yeah, I never understood why the Java creators didn't have a separate/different assignment operator that most folks always used (in other languages) as the equivalence condition...)

They assumed that developers have effective code review and testing procedures. What a mistake to make!
 
Yeahhhhhh.........Ummmmmmm.........

101 understand funny from context;
But 101 no get joke.:confused::)
Well in C++ (& I believe Java is very similar) to check whether the variable isCrazyMuderingRobot was true you should use:

if (isCrazyMurderingRobot == true)​

If you use a single "=" then instead of doing a comparison it would assign the value "true" to the variable, and since that assignment returns the value "true" bad things will follow. So the robots aren't doing what was intended, but they are definitely doing what they were programmed to do.
 
Last edited:
Back
Top Bottom