Answers for "kotlin return more than 1 value"

0

return two values kotlin

fun main() {
    val numbersMap = mapOf("one" to 1, "two" to 2, "three" to 3)
    for ((key, value) in numbersMap) {
   
        System.out.println("key :" + key)
        System.out.println("value :" + value)
    }  
}
Posted by: Guest on October-23-2021

Code answers related to "kotlin return more than 1 value"

Browse Popular Code Answers by Language