1
Prepared by:
Eng.Abdelwahab Mohamed
2
Quick Recap
What is Kotlin?
Kotlin is a modern, trending programming language that was released in 2016
by JetBrains.
It has become very popular since it is compatible with Java (one of the most
popular programming languages out there), which means that Java code (and
libraries) can be used in Kotlin programs.
Kotlin is used for:
Mobile applications (specially Android apps)
Web development
Server side applications
Data science
And much, much more!
Why Use Kotlin?
Kotlin is fully compatible with Java
Kotlin works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
Kotlin is concise and safe
Kotlin is easy to learn, especially if you already know Java
3
Kotlin is free to use
Big community/support
Important notes:
The fun keyword is used to declare a function.
The main() function is used to execute code.
Any code inside the main() function's curly brackets {} will be executed.
The println() function is used to output values/print text: