Sum up values in an array list in java

Posted by user1449997 on Stack Overflow See other posts from Stack Overflow or by user1449997
Published on 2012-06-11T22:27:25Z Indexed on 2012/06/11 22:40 UTC
Read the original article Hit count: 272

Filed under:
|
|

Hello to all tired and frustrated programmers,

There is a problem I can't solve:

In my array list there are Object arrays with the length of three and always on the last cell of the array there is a double. I need a loop which goes through the array list and sums up all doubles. (I need also some other thing from the arrays so a general idea how to loop through an array list would be perfect :-))

Any ideas? Thanks for your help, Greetings Demian

© Stack Overflow or respective owner

Related posts about java

Related posts about arrays