If a non-zero value is returned by the method and saved in the count variable, then the value of count is not zero. How does the value of count get set to zero after is has gotten a non-zero value...
Type: Posts; User: Norm
If a non-zero value is returned by the method and saved in the count variable, then the value of count is not zero. How does the value of count get set to zero after is has gotten a non-zero value...
If count has the number of elements in the array, can you explain how its value is 0?
Where is the number of elements in the array computed and saved so it can be used to control the loop?
Where is a value assigned to count? Is that value 0?
You don't have to return array2. It is not a newly created array. It was passed to the method as an arg.
Please explain what happens. What does "it won't let me" mean?
Please edit your post and wrap your code with
<YOUR CODE HERE>
to get highlighting and preserve formatting.
One problem...