Interview Q'

Hi Please help me with this question. How to find the max lement in an array without using for loop .
[122 byte] By [BenjaminJavaa] at [2007-11-26 15:47:42]
# 1

> Hi

>

> Please help me with this question.

>

> How to find the max lement in an array without using

> for loop .

You can always sort the array and then pick the element at [left as an exercise for the OP].

Check out the overloaded sort-methods in [url http://java.sun.com/j2se/1.5.0/docs/api/java/util/Arrays.html]java.util.Arrays[/url].

(Not sure why you posted this question in this forum though.)

Torgila at 2007-7-8 22:07:08 > top of Java-index,Desktop,Developing for the Desktop...