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...
Type: Posts; User: Norm
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...
I guess you could ignore making the change if the value is negative. Only change it if positive.
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?