Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Array of two VO whit same field

807591Mar 13 2008 — edited Mar 14 2008
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2008
Added on Mar 13 2008
16 comments
124 views