Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comparison between array elements

 
Gjorgi Var
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answered within an hour, wow! I love you guys... hey, you too Chi Lin
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Next time, could we please put the focus on helping someone to figure out the solution for themselves - not just posting the solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic