Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Returning the minimum value of an Array?

807589Aug 24 2008 — edited Aug 24 2008
Well; i have an array the size of 10000;
public int prices[] = new int[10000];
I need to find the smallest number, i was going to do a series of loops with if's and smaller than, but i think there must be a simpler and more efficiant way.

Thanks for any help, i will be very appreciative.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2008
Added on Aug 24 2008
9 comments
629 views