From 4a2463eca0b366f67c6fa0be580bdacd62ba83d0 Mon Sep 17 00:00:00 2001 From: Funtov Kirill Date: Mon, 10 Apr 2023 19:52:49 +0300 Subject: Small groovy bang fix --- groovy.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'groovy.html.markdown') diff --git a/groovy.html.markdown b/groovy.html.markdown index 0d589c10..fa0658a4 100644 --- a/groovy.html.markdown +++ b/groovy.html.markdown @@ -193,7 +193,7 @@ def say(msg = 'Hello', name = 'world') { assert 'Hello world!' == say() // Right most parameter with default value is eliminated first. assert 'Hi world!' == say('Hi') -assert 'learn groovy' == say('learn', 'groovy') +assert 'learn groovy!' == say('learn', 'groovy') /* Logical Branching and Looping -- cgit v1.2.3 From 38b4916100546d68e0b3d0a0793f913ebab294b0 Mon Sep 17 00:00:00 2001 From: trietbui85 <340836+trietbui85@users.noreply.github.com> Date: Sat, 15 Apr 2023 14:22:38 +0700 Subject: Update groovy.html.markdown ... with syntax to create a list with data. --- groovy.html.markdown | 3 +++ 1 file changed, 3 insertions(+) (limited to 'groovy.html.markdown') 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 -- cgit v1.2.3