Why's that? Is it the requirements for an assignment or something? I cannot just give you the answer here because it violates this forums rules on spoon feeding answers. The only hint I can give you...
Type: Posts; User: ChristopherLowe
Why's that? Is it the requirements for an assignment or something? I cannot just give you the answer here because it violates this forums rules on spoon feeding answers. The only hint I can give you...
What you need is a for loop. They look like this:
for (int i = 0; i < myArray.length; i++) {
doSomething(myArray[i]);
}
Use a for loop to iterate through all the values of the array....