Method header \ return type \ formal parameter.
Method Header: Method naming convention, hump convention (Camel casing), Cas:capital and Small.
Formal parameter: The method can be controlled by the value of the argument.
Return type: Method can return only one result, but can return multiple references in the form of a collection.
method, a function that is executed by a particular object.
In a Java class, the relative order of a feature (property and method) declaration is irrelevant.
Programming habits: Declare all attributes at the very front of a class declaration, that is, declaring a property before a class method declaration.
Returns the statement, return, is the statement that jumps out of the method, and can return void, i.e. no information is returned.
Programming Habits: A method only contains a return statement at the end, unless the method performs a series of operations, one step fails, the entire method fails.
method to define the business logic (business rules) internally.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/Java/