Answers for "kotlin switch with"

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

Browse Popular Code Answers by Language