Array of two VO whit same field
807591Mar 13 2008 — edited Mar 14 2008I have 2 VO on my app, one of this is like that
id string, numberOfItems
that VO is filled whit data like that
id items
[1][100]
[2][50]
[3][200]
[3][70]
[4][80]
[3][45]
[5][30]
[5][20]
[5][60]
i want to place this data in a second VO but grouping the data whit same ID and sum the total items, to get some like that
[1][100]
[2][50]
[3][315]
[4][80]
[5][130]
can som1 plz help me, i'm just 3 weeks of experiense whit J2EE and Java