Hello,
Although I've been using Scala for a while, and mixing it with Java also, I bumped on problem.
How can I pass a Java array to Scala? I know that the other way around if fairly straightforward. Java to Scala is not so however.
I should I declare my method in Scala?
Here is a small example of what I'm trying to achieve:
Scala:
def sumArray(ar: Array[Int]) = ...
Java:
RandomScalaClassName.sumArray(new int[]{1,2,3});
Is this possible?