local numbers = _objectWrappers:wrap(_arrays:arrayOf(_plugins:loadClass("java.lang.Integer"), 10, 20, 30, 20, 40)) -- 查找元素 20 的最后一个索引 local lastIndexOf20 = numbers:lastIndexOf(20) -- 输出:元素 20 的最后一个索引: 3 _console:log("元素 20 的最后一个索引: ", lastIndexOf20)