title: JRuby Array to Java Array
body: <p>I am making a site in JRuby on Rails, I am using some Java classes as well.</p>
  
  <p>I have a select form element which passes user selections to the controller.</p>
  
  <p>The selections are passed like so:</p>
  
  <pre><code>Parameters: {"options"=&gt;["Option One", "Option Two"]}
  </code></pre>
  
  <p>The Java method that I am using requires the options selected to be a <code>String[]</code> (Java String Array?)</p>
  
  <p>I have tried using:</p>
  
  <pre><code>params[:options].to_java(:string)
  </code></pre>
  
  <p>This does not seem to work.  Can someone point out what I am doing wrong and what I need to do convert the options to a Java String Array?</p>
  
  <p>Thanks</p>
  
  <p>Eef</p>