local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 10)) -- 获取数组中唯一的元素 local singleElement = numbers:single(function() return true end) -- 输出:唯一的元素: 10 _console:log("唯一的元素: ", singleElement)