1 Replies - 526 Views - Last Post: 06 August 2019 - 12:17 AM

#1 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 700
  • Joined: 23-September 15

clear() not found in List

Posted 05 August 2019 - 11:01 PM

availableCurrenciesList is a List, but why it doesn't has clear method?

Posted Image
Is This A Good Question/Topic? 0
  • +

Replies To: clear() not found in List

#2 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 52
  • View blog
  • Posts: 700
  • Joined: 23-September 15

Re: clear() not found in List

Posted 06 August 2019 - 12:17 AM

In kotlin, we need to use mutableListOf instead of List.
var availableCurrenciesList = mutableListOf<Currency>()

This post has been edited by wseng92: 06 August 2019 - 12:18 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1