If the method is defined:
void method(String... param)
Then either call it like this:
method("String 1", "String 2")
Or deploy Seq using this special syntax:
method(Seq("String 1", "String 2"): _*)
Given your sample code (I assume my edit is correct):
myJavaClass.myJavaMethod(params: _*)
source share