summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortrietbui85 <340836+trietbui85@users.noreply.github.com>2023-04-15 14:22:38 +0700
committerGitHub <noreply@github.com>2023-04-15 14:22:38 +0700
commit38b4916100546d68e0b3d0a0793f913ebab294b0 (patch)
tree90a56ef08a3272957d0c3c83273a23aefb5c1830
parentc035db7a671d9530fafb87a6f9508a8a87fe9092 (diff)
Update groovy.html.markdown
... 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