📅  最后修改于: 2022-03-11 14:52:26.750000             🧑  作者: Mango
private static int largest(int[] arr) {
int i = 0;
int index = 0;
for(int c = 0;c < arr.length;c++){
if(i < arr[c]){
i = arr[c];
index = c;
}
}
return i;
}