What's wrong with this code
int numOfPrimes=pf.FindNumPrimes(10000);
Double frequency=((Double)numOfPrimes)/10000d;
Says
inconvertible types found : int required: java.lang.Double Double frequency=((Double)numOfPrimes)/10000d;
You're trying to autobox an int to a Double object, which is invalid.
Try:
int numOfPrimes=pf.FindNumPrimes(10000);
Double frequency=((double)numOfPrimes)/10000d;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With