My python function :
def searchMAX(Dict):
v=list(Dict.values())
return list(Dict.keys())[v.index(max(v))]
I can't reproduce it in java to understand what's its output
If I do :
myDico ={0:0.0}
myDico.update({1:1.2})
myDico.update({2:11.2})
myDico.update({3:17.2})
myMax = searchMAX(myDico)
print(*myMax, sep='\n')
I have this error :
TypeError: print() argument after * must be an iterable, not int
With print(myMax, sep'\n')
only retun 3 not a list :( ?