I've been searching for a way to do this and have come up empty and hoping someone may have an idea. I have an arrayList that is storing objects such as
{addToList, firstName, lastName, 1.0}
{addToList, firstName, lastName, 0.5}
{addToList, firstName, lastName, 0.5}
{addToList, firstName, lastName, 1.5}
I need a way to add the values of the double amount from all of the objects, so I can get an output of
total amount is $4.5
Any help is appreciated =)