Created
September 10, 2020 14:07
-
-
Save jolasjoe/0af380d57bc3015729d70def0ec33897 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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