I see this quite often - people who have a gold badge on a tag may know a lot about the tag, but they still fall victim like any other person to thinking they can mind-read other people and close questions as a dupe purely on some unverified assumption about what the poster intended.
Another problem is that the re-open queue doesn't seem to work well. I hardly ever see a question being re-opened even after all the problems indicated in the close reason have been resolved. Or, as in this case, when one dupe hammer user voted to close as a duplicate that is clearly incorrect.
https://stackoverflow.com/questions/32418638/java-how-to-close-program-on-input
In this question, the duper-hammerer just assumed that the question had something to do with closing the console that started the program, even though this is not mentioned anywhere in the question. The actual problem of the OP is pretty simply visible in the source code, and has no relation at all with the supposed duplicate.
Yet after 15 hours, only 3 reopen votes have been cast. I doubt that the necessary quorum of re-open votes will ever be reached. Update: the question has been reopened and closed as no-repro.
Why not change this dupe hammer to require at least two different persons to close for the same duplicate? That's still better than the required number of votes from non-golden-badges.