This pertains to calling Scala code from Java or vice-versa.
Questions tagged [scala-java-interop]
332 questions
-3
votes
1 answer
Convert scala map to java map
How can i do to convert scala map to java HashMap?
My scala map below:
val map = Map((KEY_CONDITION, keyCondition), (RANGE_CONDITION, rangeCondition))
My java code below:
method(HashMap hashmap){
//do something
}
Thanks

guestUser
- 1
- 2
-4
votes
1 answer
What does this scala error mean about type mismatch?
type mismatch;
found : String => Int
required: java.util.function.ToIntFunction[_ >: String]
I really do wish before people wrote up the "next big thing" they got a few language specialists on board who could explain to them that error…

bharal
- 15,461
- 36
- 117
- 195