📅  最后修改于: 2022-03-11 14:52:19.864000             🧑  作者: Mango
int largest = 0;
for ( int i = 1; i < array. length; i++ )
{
if ( array[i] > array[largest] ) largest = i;
}
return largest; // position of the first largest found.
}