Yeah, the if () {} statement is inside a try catch statement, i just forgot to include it in my question.
Type: Posts; User: ojonugwa
Yeah, the if () {} statement is inside a try catch statement, i just forgot to include it in my question.
Question is a little bit elementary, but i just need a programmer to programmer explanation.
For example:
if (number < 1 || number > 100 )
throw new InvalidInputException();
...