Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This section demonstrates how to pass arrays and individual array elements as arguments to methods. To pass an array argument to a method, specify the name of the array without any brackets. For example, if array hourlyTemperatures is declared as
double[] hourlyTemperatures = new double[ 24 ]; |