| Expression statement | block {} Statement | Branch Statements | Loop Statements | Type Declaration | Variable Declaration | Synchronize Statements | With Statement | Using Statement | Type Alias |
The with statement introduce a shortcut to an often used expression.
WithStatement : 'with' '(' Expression ')' Statement
with (acdk.lang.System.out) { .print("Hello "); .print("in"); .println(" with statement"); } |
with (acdk.lang.System.out) { .println("This goes to out"); with (acdk.lang.System.err) { .println("This goes to err"); } .println("This goes to out"); } |
See also: Using Statement.