Kotlin Examples
based on : Learn Android Studio 3 with Kotlin by Ted Hagos
Introduction
Hello World!
literals
comments
Arrays
if statement
when statement
while statement
for loops
Try Catch
nullable types
Declaring functions
Declaring functions 2
default arguments
Extension Functions
Infix functions
operator overloading
Working with Types
Lambdas and Higher order function
closure
apply function
with function
Collections and Arrays
advantage of Generic
Generic sample 1
Generic sample 2
Adding new function to List
Generics in classes
Variance sample 1
covariance
Reified Generics
Type Filtering and Inheritance
Good Luck !
Could not connect to online Compiler service
check your internet and refresh the website