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
Best helpers
Cali
+5
Veirtimid
+5
Anon8889
+5
Panky1986
+5
Sardathrion
+5
G987
+5
Nuria
+5
Tony Ong
+5
Mike Adams
+5
Ender
+5
Shachna
+5
PoundingRain
+5
Alexingohr
+5
Zhengyue
+5
Shahar Tene
+5
Kang
+5
Altexpape
+5
Aung68618
+5
Anita Gould
+5