且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java 数组中的最小值和最大值

更新时间:2023-01-20 15:51:44

getMaxValue(array);
// get smallest number
getMinValue(array);

您正在调用方法但未使用返回值.

You are calling the methods but not using the returned values.

System.out.println(getMaxValue(array));
System.out.println(getMinValue(array));