local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) -- 打印数组中的每个元素 numbers:forEach(function(it) _console:log(it) end) -- 输出: -- 1 -- 2 -- 3 -- 4 -- 5