title: Convert empty list to java list
body: <p>In the documentation on <code>Nil</code> to empty <code>java.util.List&lt;String&gt;</code>. I tried this:</p>
  
  <pre><code>Nil.asJava
  </code></pre>
  
  <p>But it refuses to compile. So I did the following:</p>
  
  <pre><code>Nil.asInstanceOf[Seq[String]].asJava
  </code></pre>
  
  <p>and it worked. But it seems hacky to me... Maybe there another way to do that?</p>