This question is very low-quality. As the comments state, the code provided does not compile. Furthermore, it fails to ask (in my opinion) a specific question, show any additional attempted code (though in this case that might be fuzzy), or even describe expected results.
Yet the question has 7 answers (0 votes each).
This question should not remain on SO: it can't help future visitors to the site, and might show up as a result for a casting search, leading to no real answers for the searcher.
For the purpose of my question, define "bad" as a combination of unsalvageable and not demonstrating minimal knowledge. Answers to these questions generally don't solve the intended problem (since the problem isn't clear), and are probably more useful when presented as a code review than actual solutions.
This question's quality deserves more than downvoting, in my opinion. Is it enough to merely flag it as low quality? Or should it go straight to moderator attention?