File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes max and min in array? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "max and min in array?" Watch "max and min in array?" New topic

max and min in array?

James Jones

Joined: Aug 26, 2003
Posts: 3
Hi, i think this might be a bit too easy for here, i am not sure.
but its not easy for me, lol
i have this code which prints out a simple array....right. but i cant figure out a way for it to print out the min, max, and mean...can i have some hints please....
Anupreet Arora
Ranch Hand

Joined: Jun 17, 2003
Posts: 81

I have added to your code, to find the max, min and mean of the array elements. Hope you find this helpful.
I agree. Here's the link:
subject: max and min in array?
It's not a secret anymore!