Java · Static methods

Defining and calling a method

A method gives a few lines a name, so one call can run them wherever the program needs them.