When being in scala and I write
val data: java.util.List[java.util.List[Double]] = new java.util.ArrayList[java.util.ArrayList[Double]]()
I get the error
Expression of type util.ArrayList[util.ArrayList[Double]] does not conform to expected type util.List[util.List[Double]]
What am I doing wrong?