0

I am trying to use collection(list) in b2x virtual method

B2X Method - arguments -

add(Double d,List l)
l.add(d);

But when I write rules it does not allow List object. What is wrong here?

Devesh
  • 2,024
  • 2
  • 16
  • 21

1 Answers1

0

Try converting the list to an array. You can then iterate over the array with a for loop:

Object[] things = paymentsRepo.payments.toArray();

for(int n=0; n <things.length; n++)
{
... etc