阅读背景:

在数组中获取多个最小值(当我只想要一个时)

来源:互联网 

I'm trying to find the minimum and maximum values in an array. The for loop used to find the max value works properly (it prints 100), however, the for loop to get the min value prints multiple numbers (95, 87, 85, 78). I've tried changing where the System.out is placed as well as using a Method with a int return value and multiple values continue to show up.I'm trying to find the minimum and maximum valu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: