Top "Scala-java-interop" questions

This pertains to calling Scala code from Java or vice-versa.

Can I use scala List directly in Java?

Can I use scala List in Java, like : import scala.collection.immutable.List; class HelloScalaList { public static void main (String[] …

java scala-collections scala-java-interop
Java <-> Scala interop: transparent List and Map conversion

I am learning Scala and I have a Java project to migrate to Scala. I want to migrate it by …

java scala interop scala-java-interop
Scala - ambiguous reference to overloaded definition -- with varargs

Possible Duplicate: How do I disambiguate in Scala between methods with vararg and without I am currently porting part of …

scala scala-java-interop
Convert java.lang.String to Scala string

I have a String in my Scala program that I'd like to cast as an Int. def foo(): Int = x.…

java string scala scala-java-interop
Scala extra no-arg constructor plus default constructor parameters

I am using the Scala 2.8 default parameters on a constructor, and for Java compatibility reasons, I wanted a no-arg constructor …

scala constructor default-parameters scala-java-interop
Accessing scala.None from Java

How can you access scala.None from Java? The last line causes the compiler to die with "type scala.None …

java scala singleton scala-java-interop maybe
How to convert Scala List to Java ArrayList

I am using a Java API that requires ArrayList as parameter. Now in Scala, I have a List[String]. How …

java scala scala-java-interop
Implicit conversion of java.util.List to scala List does not occur

I have very basic problem with scala.collection.JavaConversions. I would expect that following code would work but implicit conversion …

java scala implicit-conversion scala-java-interop
Calling a protected static Java method from Scala

I have a library here with some Java classes. One class has some protected static methods, which I realize is …

scala scala-java-interop