Kotlin傳遞變長參數傳遞到Java變長參數方法

java 方法html public void test(int... args)kotlin 調用 var params = intArrayOf(1, 2, 3) test(*params)在參數前面加 * 
相關文章
相關標籤/搜索