Hello,

I am trying to emit values from an array. I am emitting using an for loop. 
Number of records emitted is correct but it is emitting only the last value of 
the array multiple times. So how to emit different values of array.

int i =0;
for (int j = 0;j<cares.length;j++) {

 pojo.setID(id);
pojo.seturl(url);
pojo.setPosition(i);
 pojo.setCares(cares[j]);
i++;
CaresOut.emit(pojo);
}


Thank you,

Jaikit Jilka

Reply via email to