0
I have a ArrayList
one of the fields is a BigDecimal
. I am not able to make this sum iteratively with loop. Someone can give a hint of how to perform this operation?
If it were a double
common, would do the form below, but using bigdecimal, I can’t think of a solution:
for(..){
valorTotal += lista.get(i).getValorItem();
}