# encoding: utf-8 numbers = $objectWrappers.wrap($arrays.arrayOf($plugins.loadClass("java.lang.Long"), 1, 2, 3, 4, 5)) list = $objectWrappers.wrap($iterables.mutableListOf()) # 将数组元素添加到 LinkedList 中 numbers.toCollection(list) # 输出:List: [1, 2, 3, 4, 5] $console.log("List: ", list)