最佳答案
I have a method (getContacts) that returns a List<Contact> and I need to convert this result to a MutableList<Contact>. Currently the best way I can think of doing it is like this:
val contacts: MutableList<Contact> = ArrayList(presenter.getContacts())
Is there a more idiomatic/"less Java" way to do that?