Algorithms/Find maximum/Java findMax method 6