-8

I do not really understand why was my question downvoted. Can someone explain it to me, please?

(Question)

5
  • 8
    Probably because your question was a requirement spec rather than an actual programming issue? Note - I did not downvote your question - not seen it till now. Commented Sep 21, 2014 at 10:32
  • 17
    You gave a nice title and formatted the question beautifully. But it lacks any research effort and some code that testifies that you understand something about programming and about your problem.
    – brasofilo
    Commented Sep 21, 2014 at 10:40
  • Two of your questions are good (one is a FAQ but at least you stated the problem well); the third may be a case for customer support, as it does concern "a programming tool" but seems not easily replicated. This one is either to broad, or asks for teh codez.
    – Jongware
    Commented Sep 21, 2014 at 10:46
  • 3
    @Peter what was that edit good for, are you on a badge hunt or something? Please stop bumping old questions with such pretty useless edits. :)
    – CodeCaster
    Commented Oct 11, 2015 at 13:30
  • @CodeCaster see also meta.stackoverflow.com/posts/296020/revisions
    – AdrianHHH
    Commented Oct 11, 2015 at 14:03

2 Answers 2

33

There are two basic problems with your question. The first one is the premise, which amounts to "How do I hammer a nail with a bottle?" To which the obvious and trite answer is: "Don't use a bottle". Not obvious to you perhaps, obvious however to many of the SO-users that see your question. They'll choose the "This question is not useful" reason, largely because it is not useful to use bottles.

The second problem is that you show no evidence of having tried to find other programmers that used a bottle before. The obvious Google query is "java insert element into an array". The top three hits are SO questions. Not obvious to you perhaps to use these keywords in a Google query, but just copy/pasting your question title into the Google query box show them as well. Many SO-users will recognize this and they'll choose the "This question does not show any research effort" reason.

You hit two of the three reasons for a downvote. The third (This question is not clear) did not apply.

4
  • I did search on Google. I might have not typed the good words on it, though (I'm a French teenager, vocabulary is not really my friend)
    – user3838784
    Commented Sep 21, 2014 at 12:08
  • 5
    @utybo: pasting in your exact title gave this as a first hit (well, apart from your own Q then). Does that post answer your question?
    – Jongware
    Commented Sep 21, 2014 at 12:37
  • I was looking for a way to do this with an array, not an ArrayList
    – user3838784
    Commented Sep 21, 2014 at 12:38
  • 16
    @utybo: re, "I did search on Google." -- if you have done research or tried to solve your problem with code, prior to posting here, then please show the fruits of your labors in your question. The question appears as if you did no prior research or attempt whatsoever. Please consider this going forward. Commented Sep 21, 2014 at 13:15
5

It was downvoted due to a lack of research. That's one of the stated reasons on the downvoted arrow.

I'm not so sure why it was closed, it's certainly not too broad.

7
  • 9
    Too broad has become a fallback reason in the absence of "doesn't demonstrate a minimal understanding".
    – animuson StaffMod
    Commented Sep 21, 2014 at 14:16
  • 3
    Using a shoe to hammer a nail works, right?
    – George Stocker Mod
    Commented Sep 21, 2014 at 21:50
  • 2
    Can't find it atm but I believe Shog said somewhere "too broad" is applicaple for cases where the OP just dumps a task description, as doing the complete task for them would be too broad (even if the task is completely trivial). Furhtermore, explaining a solution to an OP who shows absolutely no understanding of the topic would also be too broad; where would you even start? If OP fails to demonstrate his level of understanding, the question is unclear. And in general, the consensus is that bad questions should be closed regardless of reason, so I'm not sure why you reopened it...
    – l4mpi
    Commented Sep 22, 2014 at 8:50
  • 1
    @l4mpi If you can find his text and tell me how it applies to this question without applying equally to these questions, I'll accept your argument. It's 'too broad' when the answer would have to fill a book (or even a chapter in a book) to be useful. otherwise it's not too broad.
    – George Stocker Mod
    Commented Sep 22, 2014 at 13:32
  • 1
    @l4mpi, I think you're thinking of Robert Harvey, not Shog9, and if so you may want this answer of his: meta.stackexchange.com/a/226543 There are others where he gives his interpretation of Too Broad: meta.stackexchange.com/…
    – jscs
    Commented Sep 22, 2014 at 19:17
  • @JoshCaswell yes, that was what I meant. There are similar meta.SO posts from him as well. George, 2 of the 3 the questions can be reasonably assumed to be common problems that many developers face - validating mail addresses and IFs in SQL. Thus they can act as a useful reference. The C# one is bad IMO and should have been generalized to "find the difference in years between two datetime objects" (or cv'd as dup if that question already exists). But nobody needs a reference for a question like OPs as it's just a convoluted XY problem (use a real datastructure) which is not useful to others.
    – l4mpi
    Commented Sep 22, 2014 at 20:43
  • 1
    @l4mpi You still haven't mentioned what part of the question is too broad. If you read Robert's answer carefully, you'll notice he says something is too broad because of how much information you'd need to give to answer the question. In this case, you don't need that much at all; certainly not as much as would be required to be 'too broad'.
    – George Stocker Mod
    Commented Sep 23, 2014 at 1:29