I'm having all sorts of problems trying to do something that I expected to be quite simple. I have an ArrayList of float values, and I want to return the minimum value in the list as a float. I expected something like this to work:
public float getMin(){
float min = Collections.min(Arrays.asList(listOfThings)));
return min;
}
but I keep running into loads of incompatibility problems.
What's the most efficient way of doing this?
Thanks