wrap($arrays->arrayOf($plugins->loadClass("java.lang.Long"), 1, 2, 3, 4, 5)); $numbers2 = $iterables->listOf(3, 4, 5, 6, 7); // 查找两个数组的并集 $union = $numbers1->union($numbers2); // 输出:两个数组的并集: [1, 2, 3, 4, 5, 6, 7] $console->log("两个数组的并集: ", $union);