peut-on créer une méthode public static void() {}
c'est à dire sans paramètres
goune stephie
Niveau 22
niveau 12
Discussion en cours
Commentaires (1)
- Populaires
- Nouveau
- Anciennes
Tu dois être connecté(e) pour laisser un commentaire
Gellert Varga
9 juillet 2021, 23:02
Is this a question? Because you never put a question mark or a point at the end of a sentence, so it's quite hard to understand your communication and intention.
public static void() method {} // the method name is missing!
E.g: public static void spellcheck() { }
'void' does not mean without parameters. It means it doesn't return anything to the caller.
No parameters means that there is nothing in the brackets. So it does not wait for or receive any arguments sent, like this:
0