Search:

Type: Posts; User: Norm

Search: Search took 0.38 seconds.

  1. Replies
    5
    Views
    1,039

    [SOLVED] Re: declaring in my mutator

    The method's return type is void which means that it does not return anything. So just use return without a value.

    The if statement should use test if the value passed to the method is negative...
  2. Replies
    5
    Views
    1,039

    [SOLVED] Re: declaring in my mutator

    I guess you could ignore making the change if the value is negative. Only change it if positive.
  3. Replies
    5
    Views
    1,039

    [SOLVED] Re: declaring in my mutator

    What comparison would detect the negative number? Use an if statement.
    What is the code supposed to do if it detects a negative number?


    What if the full text of the error message?
Results 1 to 3 of 3