Re: Amusing or annoying code
Posted: Mon Dec 06, 2010 10:32 pm
Ok I'll bite,
What value is assigned to Min_Negative ?
Rather than checking the size of the collection, isn't it simpler to just call Collection.isEmpty ? At least that way you never have to worry about someone changing the value of Min_Positive.
Dr Danyo.
What value is assigned to Min_Negative ?

Rather than checking the size of the collection, isn't it simpler to just call Collection.isEmpty ? At least that way you never have to worry about someone changing the value of Min_Positive.
Dr Danyo.