def numbers = $objectWrappers.wrap($arrays.arrayOf($plugins.loadClass("java.lang.Integer"), 10, 20, 30, 5, 15)) // 查找数组中的最小值 def minValue = numbers.minOf { it } // 输出:最小值: 5 $console.log("最小值: ", minValue)