local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 10, 20, 30, 5, 15)) -- 查找数组中的最大值 local maxValue = numbers:maxOf(function(it) return it end) -- 输出:最大值: 30 _console:log("最大值: ", maxValue)