title: Initialize an array via Loop in Velocity
body: <p>How can i convert this one into foreach loop in velocity?</p>
  
  <pre><code>#set($starArray5 = [])
  #set($starArray4 = [])
  #set($starArray3 = [])
  #set($starArray2 = [])
  #set($starArray1 = [])
  </code></pre>
  
  <p>I tried this one but it returns an error.</p>
  
  <pre><code>#foreach($i in [5..1])
    #set($starArray$i = [])
  #end
  </code></pre>
  
  <p>any help would be greatly appreciated.</p>