Top "Scala-java-interop" questions

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

Iterating over Java collections in Scala

I'm writing some Scala code which uses the Apache POI API. I would like to iterate over the rows contained …

java scala collections scala-java-interop
How to convert a scala.List to a java.util.List?

How to convert Scala's scala.List into Java's java.util.List?

java scala scala-java-interop
How to convert a java.util.List to a Scala list

I have this Scala method with below error. Cannot convert into a Scala list. def findAllQuestion():List[Question]={ questionDao.getAllQuestions() } …

list scala scala-java-interop
What's the difference between == and .equals in Scala?

What is the difference between == and .equals() in Scala, and when to use which? Is the implementation same as in …

scala equality scala-java-interop
Convert Java List to Scala Seq

I need to implement a method that returns a Scala Seq, in Java. But I encounter this error: java.util.…

java scala seq scala-java-interop
Automatically convert Scala code to Java code

I have an app written in Scala and some of my team members want a Java version of it. It …

java scala scala-java-interop code-translation
What is the difference between JavaConverters and JavaConversions in Scala?

In scala.collection, there are two very similar objects JavaConversions and JavaConverters. What is the difference between these two objects? …

scala scala-collections scala-java-interop
Convert Java Map to Scala Map

I have a java map: java.util.Map<SomeObject, java.util.Collection<OtherObject>> and I would …

java scala type-conversion scala-collections scala-java-interop
Using Java libraries in Scala

I am new to Scala. I am only able to write basic code thus far, but I want to start …

java scala scala-java-interop