title: Java ArrayList in Ruby
body: <p>When I submit the form to server, Rails.logger.info params
  gives</p>
  
  <pre><code>{"cgAttr"=&gt;{"1"=&gt;"abc,pqr", "2"=&gt;"US"}}
  </code></pre>
  
  <p>and I want</p>
  
  <pre><code>{"cgAttr"=&gt;{"1"=&gt;"abc", "1" =&gt; "pqr", "2"=&gt;"US"}}
  </code></pre>
  
  <p>PS. "1" is input text box in UI that take multiple comma-separate values ("abc,pqr") and on server I am converting that entire string into array (["abc", "pqr"]). </p>
  
  <p>Can Any one point me in correct direction?</p>
  
  <p>Basically, I want to create ArrayList similar to Java in my Ruby on Rails application. Does anyone know how to achieve it. (I have not tried JRuby plugin yet)</p>