The first thing to realize is that the initial version of the question in question had part of the body of the question that wasn't in a code block. It is the ever familiar 'just paste the text into the text area'
import java.io.;
import java.util.;
public class content {
public static void main(String[] args) throws NumberFormatException, IOException {
HashMap>> Outer = new HashMap>>();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int count = Integer.parseInt(br.readLine());
...
And thus, the suggestion presented here would unfortunately not have done anything to block this post.
What's more, coming from another technical site we find that often when people fail to post a question on Stack Overflow for whatever reason (my current inquery is about 'help' and 'problem' in the title text), they give up posting on Stack Overflow and 5-10 minutes later create a post on Programmers.SE and post their (completely off topic) debugging question there - because this restriction isn't in place.
Putting these minor quality checks on Stack Overflow does very little to prevent the poor quality question elsewhere on the network and instead shunts the necessary community moderation to the smaller sites (again, where the question is completely off topic) where there are even less community moderation resources.
No, don't do this. It won't fix the problem on Stack Overflow. It will create more problems on smaller sites.