Java Get Max Number In Array Python Methods Vs Functions