Answers for "switch condtion in kotlin"

0

switch android kotlin

var num = 2
  
  when (num) {
                1 -> {
                Log.e("num is 1")
                }
                2 -> {
                    Log.e("num is 2")
                }
                3 -> {
                  Log.e("num is 3")
                 }
            }
Posted by: Guest on January-27-2022

Code answers related to "switch condtion in kotlin"

Browse Popular Code Answers by Language