Functions/Methods in Java
A method is a block of code which only runs when it is called.
To reuse the code: define the code once & use it many times
Syntax
<access modifier> <return type> <method name>(<parameter list>) {
// method body
return <value>;
}
Now, let'...
saswatpal.hashnode.dev9 min read