The edits you've provided to the four non-deleted questions are a good start, but some of them don't really address the central problems with their questions. A few things stood out to me:
This question was closed, which indicates that the community thought it needed improvements. If a question of yours is ever closed, that doesn't mean it should never be answered! It means you should edit it to address the specific problems, then request reevalution.
This question in particular was indicated as "needing debugging details." This generally means you need a minimal, reproducible example (in addition to any non-code steps needed to reproduce your problem) and/or information about the current results of your code. Under what conditions is implode()
throwing an error? Is there any other code that's needed to reproduce your problem? (Your HTML code in particular looks like it could use a little more.) Did you take a look at the comments and edit your question to include the information they asked for? All of those things could help make your question easier to answer and more useful for other users.
This one was caused by a typo ("Professor"-"Professors" mismatch), so I'm honestly not sure how it can be improved. Cutting down on your code sample is a good step towards a minimal, reproducible example, but it doesn't make the question more useful.
As you noted in a comment, the problem was that you had defined another class named Scanner. But you don't show that definition in your code sample, which makes your question really hard to answer. To improve this question, you should provide a minimal, reproducible example.
You also have large quantities of code in your sample that are not needed to reproduce your example, and the lack of indentation makes it harder to parse. A better, more minimal version of what you have might look like this:
package TercerCas;
import java.util.Scanner;
public class PrimeraActivitat {
public static void main(String[] args) {
int nombre;
Scanner ent = new Scanner(System.in);
nombre = ent.nextInt();
System.out.println(nombre);
ent.close();
}
}
But without the aforementioned other code, this change alone wouldn't resolve the question's most significant issue.
It seems like you often answer questions in the comments. Try to develop a habit of doing so in an edit instead. Avoid the common practice of adding a big "EDIT" block at the bottom of your post - instead, incorporate them into your question body so the additional information flows naturally.
You also have a couple of minor grammar and spelling mistakes in your questions. That's to be expected, and nobody will punish you for that! But give this guide a look, whether or not you're a native speaker: Advice for non-native English speakers.