There is no indexOf method of primitive int which is the dataType of smallest and hence you are getting the error. You need to loop through the entire array and find out the value which is lowest and...