Skip to content

Kotlin when expression is similar to the switch statement in C, C++ and Java. Kotlin when can be used either as an expression or as a statement, simply like a switch statement in Java. If it is used as an expression, the value of the first matching branch becomes the value of the overall expression.

License

Notifications You must be signed in to change notification settings

VaibhavMojidra/Kotlin---Demo-When

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin Demo When

Vaibhav Mojidra - 1.jpeg

About

Kotlin when expression is similar to the switch statement in C, C++ and Java. Kotlin when can be used either as an expression or as a statement, simply like a switch statement in Java. If it is used as an expression, the value of the first matching branch becomes the value of the overall expression.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages