Groovy as List Question -


i ran across bit of code , me seems not needed there reason following

def answers = [] list 

instead of

def answers = [] 

in groovy thought [] empty list there no need have list

no, there no difference, both create arraylist , list (java.util.list) interface anyway.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -