Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Collections Query  RSS feed

 
narain ashwin
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not able to instantiate a TreeSet passing a List to the constructor like below


whereas the documentation here allows the TreeSet to take a collection.
 
narain ashwin
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Bad...my class name matches the API classname ....Fixed it!!Closing the thread now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!