Advertisement
IMAM00

Map_in_kotlin_day_7

Apr 1st, 2022
1,346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.17 KB | None | 0 0
  1. // map in kolin
  2. fun main() {
  3. val z = mapOf("a" to 1,"b" to 2 ) // means a=1 where a is key and 1 is value
  4.   for ((x,y) in  z){ //
  5.     println("$x,$y")
  6.   }
  7. }
  8.  
  9.  
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement