How do I break a method that is not part of loop or switch statement?
You mean in code ?
You place a return like so:
// code
if ( something == notRight ) {
return; // stop this method
}
// more code
Hope this helps.
How do I break a method that is not part of loop or switch statement?
You mean in code ?
You place a return like so:
// code
if ( something == notRight ) {
return; // stop this method
}
// more code
Hope this helps.