local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 1, 2, 3, 4, 5)) local list = _objectWrappers:wrap(_iterables:mutableListOf()) -- 将数组元素添加到 LinkedList 中 numbers:toCollection(list) -- 输出:List: [1, 2, 3, 4, 5] _console:log("List: ", list)