The most copied StackOverflow Java code snippet contains a bug

Nine years later, developer corrects code snippet.

You can read the full article here.