Question: X 6 2 3 : Count negative values in array Complete the function countNegatives ( ) so that it counts of negative values in the
X: Count negative values in array
Complete the function countNegatives so that it counts of negative values in the array numbers. You may assume that the array has some elements
Examples:
countNegatives
countNegatives
Your Atnswer:
Feedback
public int countNegativesint numbers
Your feedback will appear here when you check your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
