The map is an interface and a collection in Kotlin. Maps are used to hold the pairs of objects in the form of key/value. The keys are Continue Reading
Kotlin Tutorials
In Kotlin, you may define and use the lambda and anonymous function, that is called “function literals”. The ‘function literal’ is the function that is not declared Continue Reading
A list is a generic collection of elements. Kotlin has three Collections while List is one of those. The other two collections are Set and Map. The Continue Reading
Whether you are a new programmer or starting to give a try to a new programming language, the general practice is running a simple program, the “Hello Continue Reading
In Kotlin, the while works just like in Java. So, if your background is Java then you already know how it works. For beginners, the while loop Continue Reading
An array is used to store similar data type values in a single variable. For example, you may create fifty integer or string type variables and store Continue Reading
Kotlin if is an expression that returns a value. This is different if compared with the other languages where if acts as a statement. As it acts Continue Reading
What is Kotlin when? As a beginner, you might be looking at how Kotlin switch statement works, especially if your background is working in C, Java, etc. Continue Reading
A range can be defined as the succession of values between the start, end, and step. In Kotlin, the ranges have the operator form .. (double dot). Continue Reading
Generally, the for loop is used to iterate through the given block of code for the specified number of times. In Kotlin, the for loop works like Continue Reading