mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update groovy.html.markdown
... with syntax to create a list with data.
This commit is contained in:
parent
c035db7a67
commit
38b4916100
@ -55,6 +55,9 @@ println x
|
|||||||
//Creating an empty list
|
//Creating an empty list
|
||||||
def technologies = []
|
def technologies = []
|
||||||
|
|
||||||
|
// or create a list with data
|
||||||
|
technologies = ["Kotlin", "Swift"]
|
||||||
|
|
||||||
/*** Adding a elements to the list ***/
|
/*** Adding a elements to the list ***/
|
||||||
|
|
||||||
// As with Java
|
// As with Java
|
||||||
|
Loading…
Reference in New Issue
Block a user