Yes, you need a variable to sum over inputed values.. and, to be honest, i think that
you should review your computer programming basis, no matter which language you're going to use...
Update:
Betty, I'm afraid of having been to hard with you. Sorry if my answer hurted you somehow, but asking if you need a variable where to store the sum of values seemed to me more
a
programmer beginner's question than a
Java programmer one....