Java puzzle: “x = x;”
Here’s a good puzzle for Java lovers. John Programmer had a Java program. The program never printed anything to the console, no matter how many times he ran it. He decided to clean up the code a bit. Somewhere in the middle of the program John saw this line: x = x; He removed it. […] …
Java puzzle: “x = x;” Read More »