What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2021-11-13 13:13:24
kotlin coroutine builders
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 -
Kotlin 2021-11-12 00:34:08
create a map from list kotlin
fun main() { val numbers = listOf("one", "two", "three", "four") println(numbers.associateBy { it.first().toUpperCase() }) println(numbers.associateBy(keySelector = { it.first().toUpperCase() }, valueTr... Add solution -
Other 2021-11-06 22:55:17
compound interest formula kotlin
import java.util.* //Main Function , Entry point of Program fun main(args: Array<String>) { //Input Stream val scanner = Scanner(System.`in`) //Input Amount print("Enter Principal Amount : ") val principalAmount = sc... Add solution -
Other 2021-10-21 09:39:08
how to invert list kotlin
import java.util.Collections fun main() { val days: List<String> = listOf("Sunday", "Monday", "Friday") Collections.reverse(days) &n... Add solution -
Kotlin 2021-10-06 16:51:02
kotlin var val
// 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
Shachna
+5
Cali
+5
Veirtimid
+5
Anon8889
+5
Sardathrion
+5
Nuria
+5
Tony Ong
+5
Mike Adams
+5
PoundingRain
+5
Zhengyue
+5
Shahar Tene
+5
Kang
+5
Altexpape
+5