Algorithms/Find maximum/Java findMax method 3