wrap($arrays->arrayOf($plugins->loadClass("java.lang.Long"), 10, 20, 30, 20, 40)); // 查找元素 20 的最后一个索引 $lastIndexOf20 = $numbers->lastIndexOf(20); // 输出:元素 20 的最后一个索引: 3 $console->log("元素 20 的最后一个索引: ", $lastIndexOf20);