kotlin playground code example
Example 1: Kotlin try
try {
// some code
}
catch (e: SomeException) {
// handler
}
finally {
// optional finally block
}
Example 2: kotlin playground
I recommend: https://play.kotlinlang.org/
Example 3: kotlin online compiler
This is a good Kotlin online compiler:
https://play.kotlinlang.org/