Advertisement
Muhammad_Farroos

when

Jun 15th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. fun main() {
  2. when(4){
  3. 1 -> println("Ready")
  4. 2 -> println("Set")
  5. 3 -> println("Go!")
  6. else -> {
  7. println("Command is not Ready, Set and Go!")
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement