method
A named group of instructions, such as main or println, that runs when it is called.
A method is a named block of code declared in a class, with a parameter list and a return type; calling it runs its body and may return a value.
See also
A named group of instructions, such as main or println, that runs when it is called.
A method is a named block of code declared in a class, with a parameter list and a return type; calling it runs its body and may return a value.
See also