0

How to remove or add element from or to in Kotlin

List

17th Oct 2020, 2:16 PM
Purbayan Saha
Purbayan Saha - avatar
4 RĂ©ponses
17th Oct 2020, 3:54 PM
Avinesh
Avinesh - avatar
+ 1
John Wells thanx
19th Oct 2020, 3:55 PM
Purbayan Saha
Purbayan Saha - avatar
0
You can remove by element value with this, instead of by element placement as Avinesh showed. list.remove("apple")
19th Oct 2020, 3:48 PM
John Wells
John Wells - avatar
0
You can add by placement like this, instead of appending like Avinesh showed. list.add(1, "cherry")
19th Oct 2020, 3:50 PM
John Wells
John Wells - avatar