View Single Post
  #1 (permalink)  
Old 12-02-2007, 10:47 PM
mew mew is offline
Member
 
Join Date: Nov 2007
Posts: 70
mew is on a distinguished road
Max element in an Array
I have following array and I want to find the largest value in it. I know I can write a for loop and get the max value. But is there some read made method that Java provides for this very task
Code:
int []array = new int[10]; for(int i=0;i<10;i++) array[i] = i;
Reply With Quote
Sponsored Links