1. Using MutableList · append(arr: Array<Int>, element: Int): Array<Int> { · val list: MutableList<Int> = arr.toMutableList() · list.add(element) · return list.
確定! 回上一頁