乍一看,只需将集合转换为数组并将其传递给方法,但这不起作用:
val toTypedArray = Arrays.asList("a", "b").toTypedArray() Paths.get("", toTypedArray) // <- compilation error here
没有解决方法???
java arrays collections kotlin
arrays ×1
collections ×1
java ×1
kotlin ×1