PPT Slide
HEADING:
// Print the largest of x, y, and z
public void printMax
(int x, int y, int z)
CALL:
printMax(20, 5, 20-5*4);
COMMAND TO BE EXECUTED:
Print the largest of 20, 5, and 20-5*4.
Note: the method name, printMax, has no meaning for Java. We could as well have used the name aaa, or w.
Previous slide
Next slide
Back to first slide
View graphic version