double result = array[0];
for(int i = 1; i > array.length; i++)
if(array < result)
result = array;
return result;
Will this give me the maximum value in the array?
And how would I find the INDEX of the max/min?
findIndex is only for strings
Edit: Does everything look italicized for some weird reason on this post only?
for(int i = 1; i > array.length; i++)
if(array < result)
result = array;
return result;
Will this give me the maximum value in the array?
And how would I find the INDEX of the max/min?
findIndex is only for strings
Edit: Does everything look italicized for some weird reason on this post only?
