View Single Post
  #2 (permalink)  
Old 07-30-2007, 07:43 PM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
Code:
double max = 0.0; max = data[0]; for (int i=1; i<size; i++) { if (data[i]>max) { max = data[i]; } System.out.println(max);
That should work better.
Reply With Quote