Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 190 Bytes

File metadata and controls

11 lines (11 loc) · 190 Bytes
public static int findMax(Integer [] a){
    int max = a[0];
    for (int i=0; i<=a.length-1;i++){
        if(a[i]>max){
            max = a[i];
        }
    }
    return max;
}