sum is easy
public int sum()
{
int sum =0;
for (int x =0; x < array.length; x++)
{
Type: Posts; User: javapenguin
sum is easy
public int sum()
{
int sum =0;
for (int x =0; x < array.length; x++)
{
Do you pass that array as a parameter or just have it as a date type?
What do you think this is, a "Do Your Homework for You Forum"?
Please show us what you have so far.
And also post assignment in
assignment text
It takes up less room on the page...