Top "Kotlin" questions

Kotlin is an open-source, statically typed programming language supported and developed by JetBrains.

Kotlin's List missing "add", "remove", Map missing "put", etc?

In Java we could do the following public class TempClass { List<Integer> myList = null; void doSomething() { myList = new …

collections kotlin
How do I initialize Kotlin's MutableList to empty MutableList?

Seems so simple, but, how do I initialize Kotlin's MutableList to empty MutableList? I could hack it this way, but …

kotlin
Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7

I installed the Kotlin plugin into my app (v. v1.1.1-release-Studio2.2-1) and then selected "Configure Kotlin in Project" I …

android kotlin android-gradle-plugin
Kotlin Android start new Activity

I want to start another activity on Android but I get this error: Please specify constructor invocation; classifier 'Page2' …

android kotlin android-intent android-activity
Val and Var in Kotlin

What is the difference between var and val in Kotlin? I have gone through this link: KotlinLang: Properties and Fields …

kotlin
What's the Kotlin equivalent of Java's String[]?

I see that Kotlin has ByteArray, ShortArray, IntArray, CharArray, DoubleArray, FloatArray, which are equivalent to byte[], short[], int[],char[], double[], …

java kotlin
Android - How to achieve setOnClickListener in Kotlin?

I wanted to know that how we set basic onClickListener in Kotlin for Android Development.

android listener kotlin
Kotlin Ternary Conditional Operator

What is the equivalent of this expression in Kotlin? a ? b : c This is not valid code in Kotlin.

kotlin conditional-operator
How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?

From Android 9 Pie now, requests without encryption will never work. And by default, the System will expect you to use …

java android kotlin android-9.0-pie android-network-security-config