On 17/07/12 20:39, Mark Lawrence wrote:
On 17/07/2012 20:29, Lipska the Kat wrote:
On 17/07/12 18:07, Terry Reedy wrote:
On 7/17/2012 10:23 AM, Lipska the Kat wrote:
snip
How easy was it to write max, or a universal sort in Java?
Well java.lang.Math.max() (or min() depending on what you want) might do
it and as for sorting ... java.utils.Collections.sort will sort anything
that implements the java.util.Comparable interface. All the standard
numerical classes implement Comparable by default so there is nothing to
do really.
Lipska
I would like to spend more time on this thread, but unfortunately the 44
ton artic carrying "Java in a Nutshell Volume 1 Part 1 Chapter 1
Paragraph 1 Sentence 1" has just arrived outside my abode and needs
unloading :-)
:-)))))))
LOL (and I did) but the pay is FANTASTIC, particularly if you 'get' OO.
--
Lipska the Kat: Troll hunter, Sandbox destroyer
and Farscape dreamer of Aeryn Sun.
--
http://mail.python.org/mailman/listinfo/python-list