|
http://www.jindent.com |
Previous: Indentation
|
Next: Switch-Case
|
| Indent labels |

|
class·Test·{ ····void·method()·{ myLabel:·while·(a·<·10)·{ ············... ············break·myLabel; ············... ········} ····} } |
|
class·Test·{ ····void·method()·{ ········myLabel:·while·(a·<·10)·{ ············... ············break·myLabel; ············... ········} ····} } |
| Labels on new lines |

|
class·Test·{ ····void·method()·{ myLabel: ········while·(a·<·10)·{ ············... ············break·myLabel; ············... ········} ····} } |
|
class·Test·{ ····void·method()·{ ········myLabel: ········while·(a·<·10)·{ ············... ············break·myLabel; ············... ········} ····} } |
|
See also: | Space before colons of labels , Space after colons of labels |