My code was working perfectly before and now it doesn't compile anymore. I have searched for the missing return statement for a while but still can't find it...Here is the code:
private static boolean Prime(int x){
for(int i=1;i<x;i++)
{
if(x%i==0){
return false;
}
return true;
}
}
}