You down with OOP? Yeah you know me!
Originally posted by Victoria Preston:
I have been given a snipit of code and I am suppose to find a better algorithm for determining the max vale. My problem would be I do not see anything wrong. Any help would be appricated.
Originally posted by Victoria Preston:
All it tells me is there is a subtle error in it. I think it does have something to do with the first line
You down with OOP? Yeah you know me!
Paul M. Santa Maria, SCJP
...let's assume that the container for "doubles", and the variable "x", are both defined and initialized elsewhere...
all events occur in real time
Actually, "Double.MIN_VALUE" is not a better value to use than zero, since it is actually larger than zero!
I think you are thinking about using "-Double.MAX_VALUE" (negative max value) instead.
all events occur in real time