You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.Create the below class
public class SumOfPrimes1 {
private final Primeness primeness = new Primeness();
public int sum(int max) {
int sum = 0;
for (int i = 0; i < max; i++) {
if (primeness.isPrime(i)) {
sum += i;
}
}
return sum;
}
}
2.call sum method from main method from another class.
public class App {
public static void main(String args[]){
SumOfPrimes1 sumValue = new SumOfPrimes1();
sumValue.sum(25);
}
}
What is the expected output? What do you see instead?
Should have reported as "Needs work" instead it reported as "Excellent"
What version of the product are you using? On what operating system?
1.3.3
on Windows Vista
Please provide any additional information below.
Original issue reported on code.google.com by [email protected] on 26 Dec 2014 at 6:12
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 26 Dec 2014 at 6:12The text was updated successfully, but these errors were encountered: