Kotlin Tutorials

Kotlin Programming – Classes and Inheritance

In this tutorial you’ll learn about classes and inheritance in Kotlin. To follow along, you can make use of the Kotlin – Playground. Classes and Inheritance When you define a class, you can decide whether you will allow other classes to inherit from that class. A class which inherits from another, is known as a subclass. A class which…

Kotlin Programming – Functions

In this tutorial you’ll learn about functions in Kotlin. To follow along, you can make use of the Kotlin – Playground. Functions A function is written to perform a specific task. Instead of writing the same piece of codes multiple times, you use a function to contain it and then you can call the function countless times you…

Kotlin Programming – Control Flow

In this tutorial you’ll learn about control flow in Kotlin. To follow along, you can make use of the Kotlin – Playground. Control Flow Kotlin provides the following control flow statements: for-in loop while loop if when For-in Loop For-in loop is used to iterate over lists, maps, sets, ranges of numbers or characters in a string. Iterating…

Kotlin Programming – Collection Types

In this tutorial you’ll learn about collection types in Kotlin. To follow along, you can make use of the Kotlin – Playground. Collection Types There are three primary collection types in Kotlin for storing of collections values: Lists Sets Maps Lists You use a list when you want to store an ordered collections of values. Creating an Empty…

Kotlin Programming – Basic Operators

In this tutorial you’ll learn about basic operators in Kotlin. To follow along, you can make use of the Kotlin – Playground. Basic Operators Operators are special symbols or phrases that are used to check, change or combine values. This tutorial explains some common operators of Kotlin such as the addition operator (+), the lazy conjunction operator (&&), the assignment operator (=), equal…

Kotlin Programming – Read-Only and Mutable Variables

In this tutorial you’ll learn the basics of programming in Kotlin. To follow along, you can make use of the Kotlin – Playground. Let’s dive into code practice whilst learning about Kotlin Programming. Whenever you see codes, try it in the Kotlin – Playground. You may output anything you want in the console by using:…

Kotlin Programming – Introduction

Kotlin is the new programming language used for the Android application development. Kotlin provides Int and Long for Integers, Double and Float for floating-point values, Boolean for Boolean values and String for textual data. Swift also provides three primary collection types, List, Set and Map. Kotlin stores variables and uses its identifying name as reference to values. You may declare a variable with a value as read-only. A read-only…


Follow Zakh Codelabs

Get new content delivered directly to your inbox.