def numbers1 = $objectWrappers.wrap($arrays.arrayOf($plugins.loadClass("java.lang.Integer"), 1, 2, 3)) def numbers2 = $iterables.mutableListOf(4, 5, 6) // 将两个数组合并成一个新数组,合并后的数组: [1, 2, 3, 4, 5, 6] numbers1.plus(numbers2).forEach { $console.log(it) }