public int min(){
  if (size() == 0) {
    throw new IllegalStateException("cannot find minimum of an empty list");
  }
  int min=_data[_pos - 1];
  for (int i=_pos - 1; i-- > 0; ) {
    min=Math.min(min,_data[_pos]);
  }
  return min;
}

public int min ( ) { if ( size ( ) == 0 ) { throw new IllegalStateException ( "cannot find minimum of an empty list" ) ; } int min = _data [ _pos - 1 ] ; for ( int i = _pos - 1 ; i -- > 0 ; ) { min = Math . min ( min , _data [ _pos ] ) ; } return min ; }
finds the minimum value in the list .
