Skip to content

Instantly share code, notes, and snippets.

@jolasjoe
Created September 10, 2020 14:07
Show Gist options
  • Save jolasjoe/0af380d57bc3015729d70def0ec33897 to your computer and use it in GitHub Desktop.
Save jolasjoe/0af380d57bc3015729d70def0ec33897 to your computer and use it in GitHub Desktop.
//Swift
let namesStringList = NSMutableArray(array: ["Hello", "doctor"])
print("NSMutableArray COUNT : \(namesStringList.count)")
Main().sampleFuncForStringArrayList(names: namesStringList)
//Kotlin
public class Main {
public fun sampleFuncForStringArrayList(names: ArrayList<String>){
println("names.isNullOrEmpty() ${names.isNullOrEmpty()}")
println("names.count ${names.count()}")
names.forEach {
println("Hello: $it")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment