When you
TellTheDetails, work hard on providing only those details that are relevant to the problem.
This is especially important with code. When you have a 100 line program that doesn't work as expected, very few people are going to read through all those lines to help you find the problem.
Try to find the minimal number of lines that still show your problem. If you can reduce the code you need to show to 10 lines, many more people will be willing to take a look at it. Doing so demonstrates that you were willing to
ShowSomeEffort when presenting your problem. People are more likely to help someone who cares enough not to waste their time with a lazily posted question.
This strategy will also help you to understand your problem better. It is also good practice when submitting a bug report for code that you use, so investing time into learning this practice well pays back manyfold.
Take a look at our other tips on
HowToAskQuestionsOnJavaRanch.
See Also:
http://sscce.org/ for much more detailed instructions on posting code examples.