diff options
author | Marcel Ribeiro-Dantas <ribeirodantasdm@gmail.com> | 2023-04-16 00:53:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-16 00:53:43 -0300 |
commit | b314e0076a0ba0e410eb42bdad5c61c7114dff5b (patch) | |
tree | 90a56ef08a3272957d0c3c83273a23aefb5c1830 | |
parent | c035db7a671d9530fafb87a6f9508a8a87fe9092 (diff) | |
parent | 38b4916100546d68e0b3d0a0793f913ebab294b0 (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.markdown | 3 |
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 |