I need to write a code that compares performance of Java\'s ArrayList with Scala\'s List. I am having a hard time getting the Scala List
I think the easiest route would be to start with a java interface and implement that in scala. For example create a java.util.List-implementation around the scala list in scala. Typically like this:
class ScalaList[T](val ts: T*) extends java.util.List[T] {
// Add all the methods, but implement only the neccessary ones
// Add all ts
}