Java Array Within An Array Python Methods Vs Functions