This document discusses Java methods and how they work. Methods can take parameters and return values, and have a body made up of statements. Methods are defined within classes and can access class libraries and objects. For loops are used to iterate through elements like an address array. Finally, an example is given of calculating the average of numbers by summing them and dividing by the count.
1 of 2
Download to read offline
More Related Content
ข อสอบคอม #6
1. 1 System.out.print(data);
2Method
method parameter method
return method
method parameter body method
statement
Method parameter
Method class library Method
Class Method Object
3. for
for
(Address)***
=
Call-by-reference