This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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]
 
wood burning stoves
 
subject: Comparison between array elements
 
Similar Threads
Room ID in JTable
convert a string into character array
Object reference array assignment
deleting from array and default list model
array with positions not defined