Is my updated version OK? It seems to do what I need it to do...
Type: Posts; User: brobertson300
Is my updated version OK? It seems to do what I need it to do...
Okay I got it to compile and run. However, now it always returns not prime. I think its because i set boolean notPrime = true; but, if I dont set it to anything it says that notPrime needs to be...
So I need to just add a guaranteed return statement and it will be fine? My coding is okay?
--- Update ---
I keep trying to add another return statement and cant seem to figure it out. Can you...
Not sure I follow you, Norm. So there should only be one return statement?
--- Update ---
Should there not be a for loop in the method?
Im having trouble with my method return. I am new to using methods and cant seem to grasp the idea on the return part. I have to write a method that tells if a number is prime or not. This is what I...