Results 1 to 4 of 4
Thread: skip executing commands
- 04-12-2010, 09:56 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 59
- Rep Power
- 0
- 04-12-2010, 10:04 PM #2
- 04-12-2010, 10:07 PM #3
Member
- Join Date
- Dec 2009
- Posts
- 59
- Rep Power
- 0
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
- 04-12-2010, 10:10 PM #4
Senior Member
- Join Date
- Feb 2009
- Posts
- 303
- Rep Power
- 5
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)Java Code:boolean condition; if (!condition) { //Code that would be skipped if the condition is not met }
Similar Threads
-
CMD is not reading commands
By colonial in forum Forum LobbyReplies: 1Last Post: 03-15-2010, 02:36 AM -
Im writing to a file and i want to skip lines while writing to a text file.
By Broden_McDonald in forum New To JavaReplies: 1Last Post: 02-27-2010, 01:29 AM -
problems with executing unix commands
By shanky in forum Advanced JavaReplies: 1Last Post: 02-18-2010, 05:36 AM -
Low-level java commands
By artemff in forum New To JavaReplies: 8Last Post: 01-01-2010, 06:23 AM -
Scanner Skip
By right2001 in forum New To JavaReplies: 16Last Post: 04-17-2009, 03:08 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks