Search code examples
javascalascala-java-interop

Can I use Scala standard library in Java code?


In particular, I want to use scala.util.hashing.MurmurHash3 in a Java application. Is it possible? How?


Solution

  • You literally just import the class and use it.

    So:

    Step 1: include the scala library in your classpath

    Step 2: import class and use it.

    If you need more examples, here you go.