
17
Sep, 14
Initialize groovy list with default value
Hello friends ,In this blog we learn how to create a groovy list with default value. We can create and use withDefault() method to define the value of elements not yet in the list. We use a closure as a argument to this method which returns the default value. We can...
Recent Comments