Java one-liner using Collections


#1

return Collections.max(A)+Collections.min(A);