What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2021-10-06 06:29:03
user input in kotlin
fun main() { val userinput = readLine() } Add solution -
Kotlin 2021-10-01 14:59:02
hello world in kotlin
fun main() { println("Hello World!") } Add solution -
Kotlin 2021-09-19 18:09:03
call suspend function kotlin
import kotlinx.coroutines.* // Asynchronous execution fun main() { GlobalScope.launch { // creates a new coroutine and continues doWorld() // suspending function } println("World !") // execution continues even while coroutine wait... Add solution -
Java 2021-09-07 12:41:03
kotlin difference between val and var
// Kotlin difference between val and var // val stands for read-only variable, and cannot be changed. (immutable variable) fun main() { val number = 1 number = 2 // Not possible. } // var stands for variable, and can be changed. (mutable vari... Add solution