You can create an Int Array like this: val numbers = IntArray(5, { 10 * (it + 1) }). 5 is the Int Array size. the lambda function is the element init ...
確定! 回上一頁