hello
I want to skip executing some lines in method
how can I do it??
thanks
Printable View
hello
I want to skip executing some lines in method
how can I do it??
thanks
no I didn't mean that I I have if condition if the if condition is true then exit and stop executing next lines in the method
A simple if statement should do the trick....
Pseudocode:
Here's a link to the tutorial: The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)Code:boolean condition;
if (!condition) {
//Code that would be skipped if the condition is not met
}