1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 10:14:58 +02:00

Merge pull request #4646 from trietbui85/patch-1

[groovy/en] Add example with syntax to create a list with data
This commit is contained in:
Marcel Ribeiro-Dantas
2023-04-16 00:53:43 -03:00
committed by GitHub

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