how to exit a program if condition fails IN JAVA code example
Example: exit an if statement java
continue; // skips the current itteration
break; // breaks the itteration
continue; // skips the current itteration
break; // breaks the itteration