+ 1
What is the method to declare hello()
give me the answer
2 ответов
+ 2
depends on what you want, does the method return something or is it void?
syntax for a method
accessSpecifier returnType methodName(parameter list)
example
public void hello()
static is an optional modifier that makes the method part of the class instead of just the objects
0
static void hello(){}