java - Initialize an array via Loop in Velocity -


how can convert 1 foreach loop in velocity?

#set($stararray5 = []) #set($stararray4 = []) #set($stararray3 = []) #set($stararray2 = []) #set($stararray1 = []) 

i tried 1 returns error.

#foreach($i in [5..1])   #set($stararray$i = []) #end 

any appreciated.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -