Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 b2x 虚拟方法中使用集合(列表)
B2X 方法 - 参数 -
add(Double d,List l) l.add(d);
但是当我编写规则时,它不允许 List 对象。这里有什么问题?
尝试将列表转换为数组。然后,您可以使用 for 循环遍历数组:
Object[] things = paymentsRepo.payments.toArray(); for(int n=0; n <things.length; n++) { ... etc