Monday, 29 February 2016

How to check array is empty or not in Groovy


here array1 and array2 are two different arrays. for checking of which arrays are empty we will use asBoolean.

if it returns

   true   - array is not empty
   false  - array is empty

No comments:

Post a Comment