admin

admin

Kotlin: Data Type Conversions

From time to time, you might need to convert (i.e. casting) a variable from one data type to another. Example such as converting a string to a number. Kotlin contains predefined functions that allows you to do the data type…

Kotlin Data Types

The basic data types used in Kotlin are strings, characters, booleans, numbers and arrays. String Use double-quotes to define a string. Used to store words or sentences. Character Use single-quote to define a character. Used to store a single character.…

Kotlin Variables: Mutable vs Immutable

In Kotlin, there are two types of variables; mutable variable and immutable variable. Mutable Variables Mutable variable is a variable whose value can be changed or updated from time to time. To declare a mutable variable, we use the var…