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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -