{
if (this.isEmpty())
{
throw new NoSuchElementException();
}
DoubleIterator iterator = this.doubleIterator();
double max = iterator.next();
while (iterator.hasNext())
{
double value = iterator.next();
if (Double.compare(max, value) < 0)
{
max = value;
}
}