What's the equivalent syntax to java's (Object... args)


#1

Java code:

  public void hello(String… names) {}

What’s the equivalent syntax in Kotlin? I looked for a while on the document site, but not found.


#2

 


vararg names: String


#3

Thank you!