I'm trying to add these values of the "gapsLength" result but I still haven't had success, can anyone help
the image below shows the list I'm talking about
I tried something like this
int sum = 0;
for (int number : doc["gap average.gapsLength"]) {
sum += number;
}
return sum;
Looks like your code is almost there, it may be lacking just some painless
syntax improvements. Example:
for (int number in doc['gap average.gapsLength']) {
...
}