Answers for "kotlin when."

0

when kotlin

var greeting : String ? = null
fun main(){
	when(greeting){
		null -> println("Hi")
        else -> println(greeting)
        }
   }
Posted by: Guest on July-14-2021

Browse Popular Code Answers by Language