aspose file tools*
The moose likes Beginning Java and the fly likes Comparison between array elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Comparison between array elements" Watch "Comparison between array elements" New topic
Author

Comparison between array elements

Gjorgi Var
Ranch Hand

Joined: Feb 24, 2004
Posts: 85
Probably one of the oldest tricks in the book, but I don't know it... how to extract the smallest and the biggest number in a one-dimensional float array without turning it into anything else and without earning ArrayOutofBounds exception?
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
one loop two values,

Originally posted by Gjorgi Var:
Probably one of the oldest tricks in the book, but I don't know it... how to extract the smallest and the biggest number in a one-dimensional float array without turning it into anything else and without earning ArrayOutofBounds exception?
Gjorgi Var
Ranch Hand

Joined: Feb 24, 2004
Posts: 85
Answered within an hour, wow! I love you guys... hey, you too Chi Lin
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Next time, could we please put the focus on helping someone to figure out the solution for themselves - not just posting the solution?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: Comparison between array elements