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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -