Например:
public double getMax() {
try {
if (list != null && !list.isEmpty()) {
double max = list.get(0).x + list.get(0).y;
for (Object obj : list) {
if (obj.x + obj.y > max)
max = obj.x + obj.y;
}
return max;
} else {
throw new NoSuchElementException();
}
} catch (NoSuchElementException e){
return 0;
}
}