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