Exception Handling

Run Settings
LanguageKotlin
Language Version
Run Command
fun main(args : Array<String>){ val someNullValue: String? = null lateinit var someMustNotNullValue: String try{ someMustNotNullValue = someNullValue!! println(someMustNotNullValue) } /* catch(e: Exception){ someMustNotNullValue = "Nilai String Null" println(someMustNotNullValue) }*/ catch (e: Exception) { someMustNotNullValue = "Nilai String Null" } finally { println(someMustNotNullValue) } }
Editor Settings
Theme
Key bindings
Full width
Lines