Lecture 13 Methods
Lecture 13 Methods
Explanation:
•myMethod() is the name of the method
•static means that the method belongs to the Main class and not an object of the Main
class.
•void means that this method does not have a return value.
Call a Method