SHOW:
|
|
- or go back to the newest paste.
| 1 | - | def variable = null |
| 1 | + | def list = ['a','b', null, 'c'] |
| 2 | - | assert (variable ?: 'The variable is null') == 'The variable is null' |
| 2 | + | |
| 3 | list.each{ println "$it -> ${it?.toUpperCase()}" } |