Skip to content

Instantly share code, notes, and snippets.

@socar-doga
socar-doga / StringTest.kt
Created January 15, 2018 02:28
Using joinToString, removePrefix, removeSuffix and split with Kotlin
class StringTest {
private fun stringList(){
val ids = "[57670,57669,57668,57667,57666,57665,57664,57663,57661,57662,57659]"
val personList = mutableListOf<Person>(
Person("Dave", "Kingdom", 23),
Person("Joshi", "Delete", 30),
Person("Kora", "Rabbit", 27),
Person("Kurt", "Banana", 30),