As you can see, the question ClassNotFoundException when running Spark application with spark-submit [on hold] is on-hold for the following reason:
"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example."
However, the user mentioned the exception (to answer the "why") and showed part of the code necessary to reproduce it (the "how", if we want to consider a command as a way to reproduce a problem). For me the code posted was enough, and I think that every user who knows how to use/run Spark agrees. The problem itself is super dumb, there is no reason for any Java/Scala/Python code snippet.
Just saying, but I have seen worse questions (AKA homeworks/code challenges with a "do this for me" attitude) with a relatively high score. I do agree with you that new users should be "trained" since the early stages on how to write good questions (after all, I had to modify the title and the layout), but the question itself sounds okay - no scala/java code is necessary.