The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

well you have 2 options here, you can either use Integer.parseInt() ... and just add the numbers, much easier. If you're required to do it using arrays (I'm assuming this is homework) then you need to think about the problem a bit.

You've managed to store the number in an array but they're all just digits 0-9. You've already got the loop part more or less correct, you just need to have an accumulator of some sort to get the actual value before adding them. This really becomes a matter of math, maybe work it out on paper first.