Use a return statement!
return;
or
if (condition) return;
You don’t need to (and can’t) specify any values, if your method returns void.
Use a return statement!
return;
or
if (condition) return;
You don’t need to (and can’t) specify any values, if your method returns void.