This question already has an answer here:
- “Duplicate of…[deleted post]” 5 answers
I've come across this a few times, the most recent being this chain:
- Where should I declare variables used in for-loops in Java for maximum efficiency? [duplicate]
- Does it make a difference if I declare variables inside or outside a loop in Java? [duplicate]
- Where do you declare variables? The top of a method or when you need them? 404
If it was just closed, okay, that would make some sense. But deleted? It makes the marked-as-duplicate closing of no use to anyone.
Why is this allowed by SE/is this a bug?