In my model I have a collection with values of temperatures and I want to find the maximum value with a function. I have found the following function:

`double max( collection, value )` - Returns maximum value in the given collection.

If I use this function for my collection "temperatures" it doesnt work:

> 
> double max(temperatues,result);
> 
> 
> 

Do I have to use a class for this kind of problem? I am a real Java-beginner and very desperate. Can someone give me an advise?