0
How to remove or add element from or to in Kotlin
List
4 RĂ©ponses
+ 1
Here is an example.
https://code.sololearn.com/cqz6yDWtY5Gj/?ref=app
+ 1
John Wells thanx
0
You can remove by element value with this, instead of by element placement as Avinesh showed.
list.remove("apple")
0
You can add by placement like this, instead of appending like Avinesh showed.
list.add(1, "cherry")