By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,836 Members | 2,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,836 IT Pros & Developers. It's quick & easy.

Program on "Given an array of integer, get the sum of integer stored in an array.

P: 1
Hello friends i'm a new learner of JAVA and i need to solve the problem on ARRAY.
My question is that --
Given an array of integer, get the sum of integer stored in an array.

Friends please help me out to solve this problem.
Nov 20 '08 #1
Share this Question
Share on Google+
2 Replies


Ganon11
Expert 2.5K+
P: 3,652
If you were given a series of integers, could you find their sum?

If you were given a set of, say, 10 variables in Java, could you find their sum?

Do you know how to access elements of an array?

Do you know how to use a for loop to access every element of an array?

If you know how to do all these things, then you know all you need - it just takes some combining of concepts.
Nov 20 '08 #2

Expert 10K+
P: 11,448
What would be the sum of no integers at all?

kind regards,

Jos
Nov 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.