Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Last active May 17, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmaxxdd/3a1f1fccb47a37d874c00f25dd42f117 to your computer and use it in GitHub Desktop.
Save tmaxxdd/3a1f1fccb47a37d874c00f25dd42f117 to your computer and use it in GitHub Desktop.
Code before using Array() in Kotlin.
...
val items: ArrayList<Topic> = ArrayList()
for (i in 1..20) items.add(Topic("Some topic", "Some description"))
return items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment