1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-20 13:31:43 +02:00

Update groovy.html.markdown

This commit is contained in:
Geovanny Ribeiro
2015-10-06 16:49:21 -03:00
parent d810a71b76
commit 35ba352668

View File

@@ -99,7 +99,7 @@ technologies.sort()
// To sort without mutating original, you can do:
sortedTechnologies = technologies.sort( false )
/*** Manipulating Lists ***/
/*** Manipulating Lists ***/e
//Replace all elements in the list
Collections.replaceAll(technologies, 'Gradle', 'gradle')
@@ -205,7 +205,7 @@ assert x == "worked"
displayName = user.name ? user.name : 'Anonymous'
//We can write like this:
//We can write it:
displayName = user.name ?: 'Anonymous'
//For loop