1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 17:24:29 +02:00

Update groovy.html.markdown

... with syntax to create a list with data.
This commit is contained in:
trietbui85
2023-04-15 14:22:38 +07:00
committed by GitHub
parent c035db7a67
commit 38b4916100

View File

@@ -55,6 +55,9 @@ println x
//Creating an empty list
def technologies = []
// or create a list with data
technologies = ["Kotlin", "Swift"]
/*** Adding a elements to the list ***/
// As with Java