I have found a funny topic. The user who has asked the question tagged it java but has attached JavaScript code. The first three answers were about Java solutions and then someone has found that the question is about JavaScript. I edited the question-tag to javascript and there comes my doubt.
Shall I flag those answers with Java approach as not an answer
? Actually they don't even try to answer this question! What is your opinion?