(double...values)
means the method takes one or more parameters. You can call the method with different number of parameters. They are threated as an array.
findMax(23.0, 13.0); // values array contains 2 double value
findMax(12.0,13.0,17.0) // values array contains 3 double value
for(double v : values)
means the for loop iterates on every element in values
array. On every iteration the next element in values
array assigned to v
variable.
solved The syntax of the method [closed]