title: Java distance between two points of an array?
body: <p>So this is an unique question and I would appreciate any help. </p>
  
  <p>The objective:
  To count and return an integer of 'distance' from min value to max value. 
  The list is not sorted and should not be sorted. 
  Min value might be before max or vise-verse.
  In a list of { 2, -5, -7, 8, 22, -10 } answer = 1 (the distance from -10 to 22)
  In a list of { 2, -5, -7, 8, 22, -6 } answer = 2 (the distance from -7 to 22)</p>
  
  <p>Thank you for any help. </p>