title: how to create an array and reuse in scala template play framework 2?
body: <p>I need to create an array in one of my index.scala.html. Later I want to use that array to store some values. </p>
  
  <p>I want to achieve following index.scala.html </p>
  
  <pre><code>@import scala._
  
  @myArray = @{ArrayList()};
  </code></pre>
  
  <p>and I am getting an error saying </p>
  
  <blockquote>
    <p>not found value @myArray</p>
  </blockquote>
  
  <p>If above problem is resolved I want to reuser @myArray to add String values. How I can do that ?</p>
  
  <p>thanks</p>