As it has often stated, the standard approach to an incorrect, but highly voted or even accepted, answer is to add a correct answer and comment/vote down and wait for the correct answer to raise and the incorrect to lower… eventually.
The problem with the question “Java: Clear the console”“Java: Clear the console”, is, that the wrong answer, Runtime.getRuntime().exec("cls");
has been so commonly copied, that you can say, it became a meme. It appears there in four answers and answers, and it even got upvotes for barely posting this nonworking piece of code without any additions, which didn't make a good answer, even if it was working. It seems that whenever somebody answers “Clear the console in Java” with this meme, the answer get upvotes immediately because the reader recognizes the meme.
It also re-appears in duplicates, like this onethis one (two times) or here againhere again (the most upvoted answer) and we’re talking about a six-year-old question.
Comments on the answers telling that it doesn't work are also present for a long time, but they didn't change anything. So here, it’s not about a single incorrect answer, but dozens of them, which have their own life as they can spawn children faster than the voting process (which apparently didn't solve that problem for years) can ever sort them out.
It even goes so deep, that my added answermy added answer, attempting to clarify the problem and and showing a correct solution got downvoted. It seems people don't want to give up the meme. It reminds me of The Hitchhiker's Guide to the Galaxy where wrong articles are kept because they make a good read.
So is there an alternative approach to handle wrong answers, when they have a high copying rate or tend to be kept and upvoted, even if they are blatantly wrong?