title: How to convert Scala List to Java ArrayList
body: <p>I am using a Java API that requires ArrayList as parameter. Now in Scala, I have a List[String]. How can I convert the List[String] to ArrayList in Scala?</p>
  
  <p>I have tried :</p>
  
  <pre><code>import scala.collection.JavaConverters._
  val scalaList = List("a","b","c")
  scalaList.asJava
  </code></pre>
  
  <p>Result is:</p>
  
  <pre><code>java.util.List[String] = [a, b, c]
  </code></pre>
  
  <p>The above does not work because I want the result to be </p>
  
  <blockquote>
    <p>java.util.ArrayList[String]</p>
  </blockquote>
  
  <p>instead of </p>
  
  <blockquote>
    <p>java.util.List[String] = [a, b, c]</p>
  </blockquote>