Skip to content

Instantly share code, notes, and snippets.

@ZaeemSattar
Created May 30, 2018 08:18
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 ZaeemSattar/da4fc1cfcc3f03e1247074c2ce7f3fd3 to your computer and use it in GitHub Desktop.
Save ZaeemSattar/da4fc1cfcc3f03e1247074c2ce7f3fd3 to your computer and use it in GitHub Desktop.
val csvBuilder = StringBuilder()
for (city in models) {
csvBuilder.append(city.number)
csvBuilder.append(",")
}
var csv = csvBuilder.toString()
csv = csv.substring(0, csv.length - ",".length)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment