Search:

Type: Posts; User: brobertson300

Search: Search took 0.14 seconds.

  1. Re: Please help with method return statement!

    Is my updated version OK? It seems to do what I need it to do...
  2. Re: Please help with method return statement!

    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...
  3. Re: Please help with method return statement!

    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...
  4. Re: Please help with method return statement!

    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?
  5. Please help with method return statement!

    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...
Results 1 to 5 of 5