For example, arraylist1 of arraylist2:
[[195.03, 500, MYC], [195.03, 200, MYC], [195.01, 200, MYC], [194.98, 400, MYC], [194.95, 600, NYC]]
I want to combine the first 2 arraylists since they have the same field one(195.03) and same field 3(MYC), and add the second field together(500+200). After combination the output is:
[[195.03, 700, MYC], [195.01, 200, MYC], [194.98, 400, MYC], [194.95, 600, NYC]]
Thanks!!!
[ May 01, 2008: Message edited by: sheng zhong ]
[ May 01, 2008: Message edited by: sheng zhong ]
[[195.03, 500, MYC], [195.03, 200, MYC], [195.01, 200, MYC], [194.98, 400, MYC], [194.95, 600, NYC]]
I want to combine the first 2 arraylists since they have the same field one(195.03) and same field 3(MYC), and add the second field together(500+200). After combination the output is:
[[195.03, 700, MYC], [195.01, 200, MYC], [194.98, 400, MYC], [194.95, 600, NYC]]
Thanks!!!
[ May 01, 2008: Message edited by: sheng zhong ]
[ May 01, 2008: Message edited by: sheng zhong ]