List.Remove() method is used to remove a given item from the list. Which means the size of ArrayList class can be increased or decreased according to requirement. Sometimes you need to remove one or more items from a collection, such as a List. Properties of List: It is different from the arrays. 1.No special hardware requirements. list.kt class ListDisplay:Activity() {   // Array of strings...   internal var mobileArray = arrayOf("Android", "IPhone", "WindowsMobile", "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X")   protected fun onCreate(savedInstanceState:Bundle) {     super.onCreate(savedInstanceState)     setContentView(R.layout.activity_main)     val adapter = ArrayAdapter(this,                                        R.layout.activity_listview, mobileArray)     val listView = findViewById(R.id.mobile_list) as ListView     listView.setAdapter(adapter)   } } main.xml:

kotlin remove item from list with condition 2021