Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public int minValue(){
  2.         // YOUR CODE HERE
  3.         data = new int [maxCount];
  4.         int i = 0;
  5.         int min = data[i];
  6.  
  7.         while (i<this.count){
  8.  
  9.             if(data[i] < min) {
  10.                 min = data[i];
  11.             }
  12.             this.count++;
  13.             i++;
  14.         }
  15.  
  16.         return min;
  17.     }