Array Methods/Functions plus() Adding an element to the end of the Array dropLast () Removing the last item from the Array Arrays in Kotlin have a fixed size , so you can't directly push or pop elements like in some other languages. However, you can achieve similar functionality by using specialized functions or by creating a custom data structure. fun main() { // declare an array using arrayOf () val num = arrayOf (1, 2, 3, 4, 5) num.set (0, 10) // set the first element equal to 10 num.set (1, 6) // set the secondelement equal to 6 println ( num.get (0)) // print the first element using get() println (num[1]) // print the second element using [ ] } Output: 10 6 fun main() { val numbers = intArrayOf (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val shortenedNumbers = numbers.dropLast (1) println ( shortenedNumbers.joinToString (", ")) } // output // 1, 2, 3, 4, 5, 6, 7, 8, 9