I have a Java API that returns a List like:
public List> getByXPath(String xpathExpr)
I am using the below scala code:
Shortcut to convert java list to scala list
import scala.collection.JavaConverters._
myjavaList.asScala.toList