Question: write a java method named replaceNegative to replace all the negative elements in the array with the positive value and return the array
write a java method named replaceNegative to replace all the negative elements in the array with the positive value and return the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
