Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.