A java method is a collection of statements that are grouped to operate, depending on whether a method is defined by a user or is available in a standard library. There are mainly two types of methods, which include stand library methods and user-defined methods. The standard library method is a built-in method in java that is ready for use.
The standard library method comes along with the java class library in a java archive, and the user-defined method is created
Methods of your choice to perform some task. Here is a tip to create a method
1. start with my method is the name of the method
2. static means that the method belongs to the myClass class and not an object of myclass class
3. void me and that this method does not have to return a value