summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcel Ribeiro-Dantas <ribeirodantasdm@gmail.com>2023-04-16 00:53:43 -0300
committerGitHub <noreply@github.com>2023-04-16 00:53:43 -0300
commitb314e0076a0ba0e410eb42bdad5c61c7114dff5b (patch)
tree90a56ef08a3272957d0c3c83273a23aefb5c1830
parentc035db7a671d9530fafb87a6f9508a8a87fe9092 (diff)
parent38b4916100546d68e0b3d0a0793f913ebab294b0 (diff)
Merge pull request #4646 from trietbui85/patch-1
[groovy/en] Add example with syntax to create a list with data
-rw-r--r--groovy.html.markdown3
1 files changed, 3 insertions, 0 deletions
diff --git a/groovy.html.markdown b/groovy.html.markdown
index fa0658a4..89eee3dd 100644
--- a/groovy.html.markdown
+++ b/groovy.html.markdown
@@ -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