Question: Whats wrong with this method? public double sum (double x) { if (x >= 0.5) { return x; } else { return sum(x)+ Math.random(); }
What’s wrong with this method?

public double sum (double x) { if (x >= 0.5) { return x; } else { return sum(x)+ Math.random(); } } // end sum
Step by Step Solution
3.46 Rating (156 Votes )
There are 3 Steps involved in it
The method depicted in the image is a Java method called sum that takes a double precision floatingp... View full answer
Get step-by-step solutions from verified subject matter experts
