> I am having a list which has item and corresponding
> price.I wanted to do sum of all the prices in the
> list object.how can i do that?
and what have you tried so far?....
In case you haven't figured out yet, here we try to nudge you to do as much for yourself as possible... even to figure out the solution on your own. To do so will make the solution your own forever.
How would you do it by hand, with pencil and paper?
If you can do that, and if you know a few Java basics, translating from the manual steps to the Java steps is trivial. If you don't know how to do it by hand, or don't know any Java, then there's not much anyone here can do to help you.