8.7. Passing Arrays and Array Elements to Methods
To pass an array argument to a method, specify the name of the array without any brackets. For example, if hourlyTemperatures is declared as
double[] hourlyTemperatures = new double[ 24 ];
|
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial