Hello guys,
You might have heard about a new language supported for the android Officially by Google,Named as Kotlin.
Kotlin is a statically typed Programming language.By statically typed language i mean that the type checking is done during complile time.
It was developed in July 2011 by Jetbrains in Russia,In 2017 Google declared Kotlin as the official langauge for android.
However the Traditional Java developers are sticking to java.
New programmers who want to make android apps,Web apps can use Kotlin as a language of preference.
With this Post i welcome you to the world of Kotlin.
There is no good book for kotlin but there is the official documentation on Kotlin.I refer the official Kotlin documentation.
The main aim of this post if to Introduce you Kotlin and its Uses and also how to write programs in Kotlin.
The official documentation can be found on the website KOTLIN
I belive that this post will help you to write codes in Kotlin.
So lets begin
Firstly i will tell you How to install Kotlin
There are many options
1.Use IntelliJ Idea IDE
2.Use Android Studio 3.0
3.Use Eclipse Ide
4.Online Compiler.
If you are a beginner i suggest you to use IntelliJ
This post will only help you learn KOTLIN as a language,Not the development of android apps using kotlin.
The development of android apps using KOTLIN will be posted in further posts.
After you get IntelliJ IDEA make sure u have the JDK installed and the Environment variables set.
Now we begin by typing the standard Hello world! program.
fun main(args: Array<String>)
{
println("hello world");
}
If you are familiar with Java,Atleast the basics of it You are done with almost 60 percent of kotlin.
Kotlin is very similar to java but it is more simple.
To define a function you have to write fun fun-name(arguments)
To print text we use println
Note that semicolons are optional.
Since most of the programming languages like C,C++,Java,Javascript have a semi-colon.
It is a good habit of including a semi-colon to the statements in a program.
Thank you guys
Subscribe for more on Kotlin and keep visiting,Stay tuned
You might have heard about a new language supported for the android Officially by Google,Named as Kotlin.
Kotlin is a statically typed Programming language.By statically typed language i mean that the type checking is done during complile time.
It was developed in July 2011 by Jetbrains in Russia,In 2017 Google declared Kotlin as the official langauge for android.
However the Traditional Java developers are sticking to java.
New programmers who want to make android apps,Web apps can use Kotlin as a language of preference.
With this Post i welcome you to the world of Kotlin.
There is no good book for kotlin but there is the official documentation on Kotlin.I refer the official Kotlin documentation.
The main aim of this post if to Introduce you Kotlin and its Uses and also how to write programs in Kotlin.
The official documentation can be found on the website KOTLIN
I belive that this post will help you to write codes in Kotlin.
So lets begin
Firstly i will tell you How to install Kotlin
There are many options
1.Use IntelliJ Idea IDE
2.Use Android Studio 3.0
3.Use Eclipse Ide
4.Online Compiler.
If you are a beginner i suggest you to use IntelliJ
This post will only help you learn KOTLIN as a language,Not the development of android apps using kotlin.
The development of android apps using KOTLIN will be posted in further posts.
After you get IntelliJ IDEA make sure u have the JDK installed and the Environment variables set.
Now we begin by typing the standard Hello world! program.
fun main(args: Array<String>)
{
println("hello world");
}
If you are familiar with Java,Atleast the basics of it You are done with almost 60 percent of kotlin.
Kotlin is very similar to java but it is more simple.
To define a function you have to write fun fun-name(arguments)
To print text we use println
Note that semicolons are optional.
Since most of the programming languages like C,C++,Java,Javascript have a semi-colon.
It is a good habit of including a semi-colon to the statements in a program.
Thank you guys
Subscribe for more on Kotlin and keep visiting,Stay tuned
Really a great tutorial.I loved it
ReplyDeletei guess u shud be writing some textbooks on kotlin 'plz post more