... method’s parameters also are local variables of the method. Collectively, the elements in line 25 are often referred to as the method header.

Method maximum’s Body

The method header is always followed by the method’s body, which is delimited by left and right braces, as in lines 25 and 39. A method’s body contains one or more statements that perform the method’s task.

To determine the maximum value, we initially assume that parameter x contains the ...

Get Java How To Program, Late Objects, 11th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.