How would I add up values in Custom Array list having bean class consisting variables itemcode (String) , cases(int) , packs (int) , pcs (int) I have more than one value saved in Array list as
{code1 , 3,4,5}
{code2 , 3,5,5}
{code3 , 3,2,5}
{code3 , 1,4,2}
{code1 , 3,3,5}
{code3 , 3,4,5}
{code2 , 3,8,5}
{code2 , 3,4,6}
In Such case I need result as
{code1 ,6,7,10 }
{code2 ,9,17,16 }
{code3 ,7,10,12}