```>>> val x = mutableListOf("a","b","c",...
# getting-started
b
Copy code
>>> val x = mutableListOf("a","b","c","d")
>>> java.util.Collections.swap(x, 1, 2)
>>> x
[a, c, b, d]
>>>