All the numbers in the lists are compared, using the Double.compare method, and the maximum number is returned.